Craft is affected by potential authenticated Remote Code Execution via Twig SSTI
Published Mar 4, 2026
8.6
HIGHCVSS 4.0
EPSS 0.65%
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.
Affected products
-
- Version >= 4.0.0-RC1, < 4.17.0-beta.1StatusaffectedConstraints-
- Version >= 5.0.0-RC1, < 5.9.0-beta.1StatusaffectedConstraints-
- Version
- > 4.0.0 · < 4.17.0
- > 5.0.0 · < 5.9.0
- 4.0.0
- 4.0.0
- 4.0.0
- 4.0.0
- 5.0.0
- 5.0.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (6)
- https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production x_refsource_MISCTechnical Description
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-9451 Advisory
- https://github.com/advisories/GHSA-qc86-q28f-ggww Advisory
- https://github.com/craftcms/cms/pull/18208 x_refsource_MISCIssue TrackingPatch
- https://github.com/craftcms/cms/security/advisories/GHSA-qc86-q28f-ggww x_refsource_CONFIRMPatchVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-28784
| Link | Providers | Tags |
|---|---|---|
| https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production | x_refsource_MISCTechnical Description | |
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-9451 | Advisory | |
| https://github.com/advisories/GHSA-qc86-q28f-ggww | Advisory | |
| https://github.com/craftcms/cms/pull/18208 | x_refsource_MISCIssue TrackingPatch | |
| https://github.com/craftcms/cms/security/advisories/GHSA-qc86-q28f-ggww | x_refsource_CONFIRMPatchVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-28784 |
Change history (0)
No recorded changes yet.