# CVE-2026-28784: Craft is affected by potential authenticated Remote Code Execution via Twig SSTI

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-02)
- Published: 2026-03-03T21:06:41.000Z
- Modified: 2026-06-17T10:29:02.320Z
- Also known as: GHSA-qc86-q28f-ggww
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- craftcms cms: >= 5.0.0-RC1, < 5.9.0-beta.1; >= 4.0.0-RC1, < 4.17.0-beta.1
- craftcms/cms (Packagist): from 5.0.0-RC1 before 5.9.0-beta.1; from 4.0.0-RC1 before 4.17.0-beta.1
- craftcms craft_cms: from >4.0.0 before 4.17.0; from >5.0.0 before 5.9.0; 4.0.0; 5.0.0

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:4.0 Medium `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/E:U`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-qc86-q28f-ggww> (patch, vendor-advisory, web)
- <https://github.com/craftcms/cms/pull/18208> (issue-tracking, patch, web)
- <https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production> (technical-description, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-28784> (advisory)
- <https://github.com/craftcms/cms> (package)

## Sources

- CVE List: [CVE-2026-28784](https://www.cve.org/CVERecord?id=CVE-2026-28784), CVE Terms of Use, modified 2026-03-06
- GitHub Advisory Database: [GHSA-qc86-q28f-ggww](https://github.com/advisories/GHSA-qc86-q28f-ggww), CC-BY-4.0, modified 2026-03-04
- NVD: [CVE-2026-28784](https://nvd.nist.gov/vuln/detail/CVE-2026-28784), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-28784 · Whole record: https://cve.day/CVE-2026-28784.json · Rebuilt by cve.day 2026-11-25T22:59:15.180Z
