{"id":"CVE-2026-112777","summary":"Craft CMS before 4.18.8 and 5.11.0 Twig create() Blocklist Bypass Leading to RCE","details":"Craft CMS 4.x before 4.18.8 and 5.x before 5.11.0 contains a blocklist bypass in the Twig create() function because its class-name checks are case-sensitive while PHP class resolution is not. Attackers with template-execution rights, such as Control Panel administrators, can instantiate SplFileObject via a lowercase class name to read .env secrets or write a PHP file into the webroot for remote code execution.","aliases":["GHSA-w643-x88w-6wcm"],"modified":"2026-10-20T11:18:27.320034087Z","published":"2026-10-19T19:10:54.567Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-184"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112777.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112777.json"},{"type":"ADVISORY","url":"https://github.com/craftcms/cms/security/advisories/GHSA-w643-x88w-6wcm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112777"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/craft-cms-before-4.18.8-and-5.11.0-twig-create-blocklist-bypass-leading-to-rce"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/craftcms/cms","events":[{"introduced":"982efcd14d7e93a1a54f0905b61f242de6b53d8a"},{"fixed":"feda70e264a9330919bea9eb607148198135afd4"},{"introduced":"f6a8fb685d44e387435825e3a96809eeda4973a6"},{"fixed":"2255717bfd5cc502751601aa68bf72eea035cd47"}],"database_specific":{"extracted_events":[{"introduced":"4.0.0"},{"fixed":"4.18.8"},{"introduced":"5.0.0"},{"fixed":"5.11.0"}],"source":"AFFECTED_FIELD"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-112777.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"}]}