{"id":"CVE-2026-28783","published":"2026-03-04T16:50:27Z","modified":"2026-03-06T05:01:22Z","title":"Craft has a Twig Function Blocklist Bypass","vendor":"Craft CMS","product":"cms","tier":"tail","description":{"text":"Craft is a content management system (CMS). Prior to 5.9.0-beta.1 and 4.17.0-beta.1, Craft CMS implements a blocklist to prevent potentially dangerous PHP functions from being called via Twig non-Closure arrow functions. In order to be able to successfully execute this attack, you need to either have allowAdminChanges enabled on production, or a compromised admin account, or an account with access to the System Messages utility. Several PHP functions are not included in the blocklist, which could allow malicious actors with the required permissions to execute various types of payloads, including RCEs, arbitrary file reads, SSRFs, and SSTIs. This vulnerability is fixed in 5.9.0-beta.1 and 4.17.0-beta.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00512,"percentile":0.44583,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-5fvc-7894-ghp4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/cms/pull/18208","tags":["x_refsource_MISC"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":8.92},{"name":"CVSS severity","points":6.58}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"cms","versions":[">= 5.0.0-RC1, <= 5.9.0-beta.1",">= 4.0.0-RC1, <= 4.17.0-beta.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-03-05T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"craftcms/cms","vulnerableRanges":[">=5.0.0-RC1, <5.9.0-beta.1",">=4.0.0-RC1, <4.17.0-beta.1"],"patched":["5.9.0-beta.1","4.17.0-beta.1"],"from":["GHSA-5fvc-7894-ghp4"],"provenance":"source"}],"summary":{"text":"Craft CMS's Twig template engine contains a flaw in its blocklist of dangerous PHP functions callable through non-Closure arrow functions, because several PHP functions are missing from that list. An attacker who already holds elevated privileges (an admin account, access to the System Messages utility, or a production environment with allowAdminChanges enabled) can use the gap to run payloads such as remote code execution, arbitrary file reads, server-side request forgery, or template injection.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:40Z"},"euvd":{"id":"EUVD-2026-9450","exploited":false,"provenance":"source"}}