CVE-2025-46731: Craft CMS Contains a Potential Remote Code Execution Vulnerability via Twig SSTI

Published May 5, 2025
·
Updated

Craft CMS contains a potential remote code execution vulnerability via Twig SSTI. You must have administrator access and ALLOWADMINCHANGES must be enabled for this to work.

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

Note: This is a follow-up to https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv

Users should update to the patched versions (4.14.13 and 5.6.15) to mitigate the issue.

References https://github.com/craftcms/cms/pull/17026

Other sources

Craft is a content management system. Versions of Craft CMS on the 4.x branch prior to 4.14.13 and on the 5.x branch prior to 5.6.16 contains a potential remote code execution vulnerability via Twig SSTI. One must have administrator access and ALLOWADMINCHANGES must be enabled for this to work. Users should update to the patched versions 4.14.13 or 5.6.15 to mitigate the issue.

MITRE

Affected Software

9 affected componentsFixes available
Craft Craft CMS<4.14.13, <5.6.16
composer/craftcms/cms>=5.0.0-RC1<=5.6.14
5.6.15
composer/craftcms/cms>=4.0.0-RC1<=4.14.12
4.14.13
CraftCMS Craft CMS>=4.1.0<4.14.13
CraftCMS Craft CMS>=5.1.0<5.6.15
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-rc1

Event History

May 5, 2025
CVE Published
via MITRE·07:35 PM
Data Sourced
via MITRE·07:35 PM
DescriptionWeakness
Advisory Published
via GitHub·07:35 PM
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
RemedyAffected 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-2025-46731?

CVE-2025-46731 is considered critical due to its potential for remote code execution if exploited.

2

How do I fix CVE-2025-46731?

To fix CVE-2025-46731, ensure that you update Craft CMS to version 5.6.15 or 4.14.13 and disable the ALLOW_ADMIN_CHANGES option.

3

Who is affected by CVE-2025-46731?

CVE-2025-46731 affects versions of Craft CMS prior to 5.6.15 and 4.14.13 with ALLOW_ADMIN_CHANGES enabled.

4

Is administrator access required to exploit CVE-2025-46731?

Yes, an attacker needs administrator access along with ALLOW_ADMIN_CHANGES enabled to exploit CVE-2025-46731.

5

What are the symptoms of CVE-2025-46731 being exploited?

Symptoms may include unauthorized actions or changes made within the Craft CMS when exploited.

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