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

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.

— NVD

Affected Software

11 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
composer/craftcms/cms>=5.0.0-RC1, <=5.6.14
composer/craftcms/cms>=4.0.0-RC1, <=4.14.12

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/craftcms/cms to a version that resolves this vulnerability.

    Fixed in 5.6.15
  2. Upgrade

    Upgrade composer/craftcms/cms to a version that resolves this vulnerability.

    Fixed in 4.14.13
  3. Upgrade

    Upgrade Craft CMS to a version that resolves this vulnerability.

    Fixed in 4.14.13
  4. Upgrade

    Upgrade Craft CMS to a version that resolves this vulnerability.

    Fixed in 5.6.15
  5. Configuration

    Set ALLOW_ADMIN_CHANGES to false in production.

    Craft CMS ALLOW_ADMIN_CHANGES = false

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 Packagist·07:35 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 6, 2025
Exploit Published
via GitHub·02:26 AM

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