{"id":"CVE-2026-109305","summary":"Craft CMS 5.10.2 before 5.10.14 Twig Sandbox Bypass RCE via has some/has every","details":"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.","aliases":["GHSA-vfcw-xv8p-8rj2"],"modified":"2026-10-13T02:46:38.870229142Z","published":"2026-10-12T16:05:01.545Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-1336"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/109xxx/CVE-2026-109305.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/109xxx/CVE-2026-109305.json"},{"type":"ADVISORY","url":"https://github.com/craftcms/cms/security/advisories/GHSA-vfcw-xv8p-8rj2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-109305"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/craft-cms-5.10.2-before-5.10.14-twig-sandbox-bypass-rce-via-has-some-has-every"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/craftcms/cms","events":[{"introduced":"b2ad7d1cc07fdfd03c429fcf5a4b84f0d3275a62"},{"fixed":"6804f92fbdd93c3a3fb40f15bcd76a406e97634d"}],"database_specific":{"extracted_events":[{"introduced":"5.10.2"},{"fixed":"5.10.14"}],"source":"AFFECTED_FIELD"}}],"versions":["5.10.13.2","5.10.13.1","5.10.13","5.10.12","5.10.11","5.10.10","5.10.9","5.10.8.1","5.10.8","5.10.7","5.10.6","5.10.5","5.10.4.1","5.10.4","5.10.3","5.10.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-109305.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}