CVE-2026-112773 Craft CMS 5.0.0 before 5.11.0 RCE via Twig Sandbox Behavior Injection
Authenticated Craft CMS users can achieve remote code execution by injecting malicious event handlers into Twig sandbox queries.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-112773?
CVE-2026-112773 is a high-severity code injection vulnerability in craftcms cms, published on 19 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2026-112773?
How do I fix CVE-2026-112773?
No fix has been published for CVE-2026-112773 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-112773 being exploited?
There is no known exploitation of CVE-2026-112773 in the wild and no public exploit code.
Sources
Also known as GHSA-8vpq-j4mg-h24p, GHSA-wr79-9v6x-5rfq.