CVE-2026-109305: Craft CMS 5.10.2 before 5.10.14 Twig Sandbox Bypass RCE via has some/has every
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.
Affected Software
Event History
Frequently Asked Questions
Which users can exploit this issue?
A non-admin user needs the System Messages permission. That permission allows them to provide sandboxed template content that can invoke PHP callables through the affected Twig operators.
What access and interaction are required for exploitation?
The vulnerability is network-accessible, has low attack complexity, requires low privileges, and does not require user interaction. An attacker must be able to supply a two-argument callable, such as passthru or system, in a sandboxed template.
What is the impact if exploitation succeeds?
Successful exploitation allows code execution as the web user. The reported impact includes high confidentiality, integrity, and availability impact.
Which versions are affected?
Craft CMS versions from 5.10.2 before 5.10.14 are affected. Updating to 5.10.14 or later removes the affected version range.