Low privilege condition filter escapes Twig sandbox, recovers "securityKey" and reaches RCE
CVE-2026-115938Published 23 Oct 2026, 21:58 UTC
Real-world risk
5.1/ 10Medium
Schedule in the normal cycle
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.7
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from Hackrate)
Craft CMS allows any authenticated control panel user to submit an element-search condition whose element selector is evaluated as a sandboxed Twig object template. Craft’s allowed column filter delegates property lookup to Yii ArrayHelper, outside Twig’s SecurityPolicy. Repeated single-segment lookups therefore bypass the sandbox’s empty property/method allowlists. The vulnerable condition value is ultimately cast to an integer. That does not protect the secret: the template can return author ID 1 when a guessed key character is correct and an impossible ID otherwise. The JSON endpoint returns entries for the first case and an empty array for the second, forming a stable remote character oracle. After recovering GeneralConfig::securityKey, the same user can compute Craft’s generic HMAC wire format offline. Signed parameters such as redirect are then accepted and passed to unsandboxed View::renderObjectTemplate(), where Twig’s string-callable form can invoke native PHP callables. The regression proof uses the harmless substr() callback and observes abcdef becoming cdef; it does not execute an OS command.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| cmsCommon | >= 5.0.0, < 5.11.2; >= 4.0.0, < 4.18.9 | 5.11.2, 4.18.9 |
What to do
Update to a fixed version: 5.11.2, 4.18.9.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.6% chance of exploitation in 30 days (percentile 48), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.600
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.6 × threat 0.855.100
- Rounded to one decimal between 0.1 and 105.1
Exploitation and evidence timeline
- 23 Oct 2026 Published
- 3 Dec 2026 Risk 5.1 (cvss fallback)
Weakness
CWE-1336
References
- https://www.hckrt.com/hacktivity/HCKRT-DRNL9Wmitigation, technical-description, third-party-advisory
- https://github.com/craftcms/cms/releases/tag/5.11.2release-notes
- https://github.com/craftcms/cmsproduct
- https://github.com/craftcms/cms/security/advisories/GHSA-v4q3-2g5g-wjj6third-party-advisory
- CVE-2026-115938 on CVE.org