CVE-2026-109305 Craft CMS 5.10.2 before 5.10.14 Twig Sandbox Bypass RCE via has some/has every
Non-admin users with System Messages permission can execute arbitrary PHP code via Twig sandbox bypass in Craft CMS.
- 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-109305?
CVE-2026-109305 is a high-severity code injection vulnerability in craftcms cms, published on 12 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Craft CMS from 5.10.2 before 5.10.14 contains a Twig sandbox bypass that allows non-admin users to invoke PHP callables through the "has some" and "has every" operators. Users with the System Messages permission can supply two-argument callables such as passthru or system in sandboxed templates to execute code as the web user.
Weakness: CWE-1336
Which versions are affected by CVE-2026-109305?
How do I fix CVE-2026-109305?
No fix has been published for CVE-2026-109305 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-109305 being exploited?
There is no known exploitation of CVE-2026-109305 in the wild and no public exploit code.
Sources
Also known as GHSA-vfcw-xv8p-8rj2, GHSA-xcjh-qqjq-gq4g.