CVE-2026-28784 Details
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.
A remote code execution vulnerability has been identified in Craft CMS versions prior to 5.8.22 and 4.16.18. The issue arises from improper handling of Twig input in text fields under the Settings menu or through the System Messages utility. Administrators can inadvertently create malicious payloads that exploit this vulnerability. For exploitation, administrator access is required, and the 'allowAdminChanges' setting must be enabled, which is not recommended for non-development environments. Alternatively, a non-administrator account can be used if 'allowAdminChanges' is disabled, but access to the System Messages utility is needed.
Users should update to Craft CMS versions 5.8.22 or 4.16.18, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production | [email protected] | Technical Description |
| https://github.com/craftcms/cms/pull/18208 | [email protected] | Issue TrackingPatch |
| https://github.com/craftcms/cms/security/advisories/GHSA-qc86-q28f-ggww | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| craftcms craft cms | > 4.0.0, < 4.17.0 > 5.0.0, < 5.9.0 4.0.0 - 4.0.0 rc1 4.0.0 rc2 4.0.0 rc3 5.0.0 - 5.0.0 rc1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 5, 2026 | Initial Analysis | [email protected] |
| Mar 4, 2026 | New CVE Received | [email protected] |