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

Published Mar 3, 2026
·
Updated

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.

Other sources

For this to work, the attacker must have administrator access to the Craft Control Panel, and allowAdminChanges must be enabled, which is against Craft CMS' recommendations for any non-dev environment.

https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production

Alternatively, they can have a non-administrator account with allowAdminChanges disabled, but they must have access to the System Messages utility.

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.

Users should update to the patched versions (5.8.22 and 4.16.18) to mitigate the issue.

References:

https://github.com/craftcms/cms/pull/18208

GitHub

Affected Software

10 affected componentsFixes available
composer/craftcms/cms>=4.0.0-RC1<4.17.0-beta.1
4.17.0-beta.1
composer/craftcms/cms>=5.0.0-RC1<5.9.0-beta.1
5.9.0-beta.1
CraftCMS Craft CMS>4.0.0<4.17.0
CraftCMS Craft CMS>5.0.0<5.9.0
CraftCMS Craft CMS=4.0.0
CraftCMS Craft CMS=4.0.0-rc1
CraftCMS Craft CMS=4.0.0-rc2
CraftCMS Craft CMS=4.0.0-rc3
CraftCMS Craft CMS=5.0.0
CraftCMS Craft CMS=5.0.0-rc1

Event History

Mar 3, 2026
Advisory Published
via GitHub·09:06 PM
Data Sourced
via GitHub·09:06 PM
DescriptionWeaknessAffected Software
Mar 4, 2026
CVE Published
via MITRE·04:53 PM
Data Sourced
via MITRE·04:53 PM
DescriptionWeakness
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-28784?

CVE-2026-28784 has been designated with a high severity rating due to the potential for authenticated Remote Code Execution.

2

How do I fix CVE-2026-28784?

To fix CVE-2026-28784, upgrade to Craft CMS version 4.17.0-beta.1 or 5.9.0-beta.1 or later.

3

What versions of Craft CMS are affected by CVE-2026-28784?

CVE-2026-28784 affects Craft CMS versions prior to 4.17.0-beta.1 and 5.9.0-beta.1.

4

Is CVE-2026-28784 a Remote Code Execution vulnerability?

Yes, CVE-2026-28784 allows for potential authenticated Remote Code Execution through Twig SSTI.

5

What components of Craft CMS are vulnerable in CVE-2026-28784?

CVE-2026-28784 impacts the Twig map filter used in text fields that accept Twig input under Settings in the Craft control panel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203