CVE-2026-115938
8.8 HIGHpublic exploit availablePublished 2026-10-23 · Updated 2026-10-26
AI risk analysis
- Summary
- An authenticated Craft CMS control panel user can exploit a sandbox escape in element-search queries to perform a side-channel attack on the security key and then forge signed parameters, leading to arbitrary PHP callable execution via unsandboxed Twig templates.
- Exploitability
- Exploitation requires a valid control panel login and leverages a character-by-character oracle derived from the application's response to crafted queries.
- Blast radius
- Successful exploitation allows full compromise of confidentiality, integrity, and availability through authenticated remote code execution-like behavior using native PHP functions.
- Detection
- Look for repeated element-search requests returning non-empty results only when specific character guesses are made, correlating with anomalous patterns in security key recovery attempts; also monitor for signed parameter usage with unexpected or malformed values leading to View::renderObjectTemplate calls.
- Prioritized remediation
- Upgrade to Craft CMS 4.15.2 or later, where the sandboxed Twig template evaluation has been corrected to prevent unauthorized property access outside the SecurityPolicy.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-1336
Public exploit & PoC references
All references
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- HIGHCVE-2026-119978PoC
- CRITICALCVE-2026-121060
- CRITICALCVE-2026-121071
- CRITICALCVE-2026-121104
- CRITICALCVE-2026-125347
- HIGHCVE-2026-105985PoC
- HIGHCVE-2026-109305PoC
- HIGHCVE-2026-115189PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.