{"id":"CVE-2026-28784","published":"2026-03-04T16:53:15Z","modified":"2026-03-06T05:01:19Z","title":"Craft is affected by potential authenticated Remote Code Execution via Twig SSTI","vendor":"Craft CMS","product":"cms","tier":"tail","description":{"text":"Craft is a content management system (CMS). Prior to 5.8.22 and 4.16.18, it is possible to craft a malicious payload using the Twig map filter in text fields that accept Twig input under Settings in the Craft control panel or using the System Messages utility, which could lead to a RCE. For this to work, you must have administrator access to the Craft Control Panel, and allowAdminChanges must be enabled for this to work, which is against our recommendations for any non-dev environment. Alternatively, you can have a non-administrator account with allowAdminChanges disabled, but you have access to the System Messages utility. Users should update to the patched versions (5.8.22 and 4.16.18) to mitigate the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00588,"percentile":0.49045,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-qc86-q28f-ggww","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/cms/pull/18208","tags":["x_refsource_MISC"]},{"url":"https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production","tags":["x_refsource_MISC"]}],"priority":{"score":15.8,"factors":[{"name":"EPSS percentile","points":9.81},{"name":"CVSS severity","points":6.02}]},"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-qc86-q28f-ggww"],"provenance":"source"}],"summary":{"text":"Craft CMS (the cms product) contains a server-side template injection flaw in text fields that accept Twig input, reachable through Settings in the control panel and the System Messages utility, through use of the Twig map filter. An attacker with administrator access to the Control Panel, with allowAdminChanges enabled, or a non-administrator account with access to the System Messages utility while allowAdminChanges is disabled, could craft a malicious payload that leads to remote code execution, with the attack requiring authenticated network access and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:12Z"},"euvd":{"id":"EUVD-2026-9451","exploited":false,"provenance":"source"}}