CVE-2026-112773
8.8 HIGHpublic exploit availablePublished 2026-10-19 · Updated 2026-10-19
AI risk analysis
- Summary
- Authenticated Control Panel users in Craft CMS versions before 5.11.0 can escape the Twig sandbox by injecting malicious event handlers via the 'as' or 'on' config keys in getNext, getPrev, or getOwners calls, leading to remote code execution as the web server user.
- Exploitability
- Exploitation requires valid Control Panel authentication and knowledge of the vulnerable Twig methods; no privilege escalation beyond authenticated user is needed.
- Blast radius
- Successful exploitation allows full compromise of the web application environment, including data theft, service disruption, and lateral movement within the infrastructure.
- Detection
- Defenders should monitor Control Panel access logs for requests invoking getNext, getPrev, or getOwners with suspicious 'as' or 'on' parameters; anomalous Twig template rendering behavior or unexpected PHP object instantiation in application logs may also indicate exploitation attempts.
- Prioritized remediation
- Upgrade to Craft CMS 5.11.0 or later, which patches the Twig sandbox escape via improper validation of element query criteria in getNext, getPrev, and getOwners methods.
rcetwig-sandbox-escapeauth-bypasswebappelement-injection
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
Craft CMS from 5.0.0 before 5.11.0 contains a remote code execution vulnerability that allows authenticated Control Panel users to escape the Twig sandbox by passing uncleansed criteria to getNext, getPrev, or getOwners. Attackers can inject Yii "as" or "on" config keys to attach malicious event handlers that execute when the element query runs, achieving code execution as the web user.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Public exploit & PoC references
References
Data: NVD (public domain). Analysis: local $0 model. Defensive use only.