CVE-2025-23209: Craft CMS Code Injection Vulnerability

Published Jan 18, 2025
·
Updated

Impact

This is an RCE vulnerability that affects Craft 4 and 5 installs where your security key has already been compromised.

https://craftcms.com/knowledge-base/securing-craft#keep-your-secrets-secret

Anyone running an unpatched version of Craft with a compromised security key is affected.

Patches

This has been patched in Craft 5.5.8 and 4.13.8.

Workarounds

If you can't update to a patched version, then rotating your security key and ensuring its privacy will help to migitgate the issue.

References

https://github.com/craftcms/cms/commit/e59e22b30c9dd39e5e2c7fe02c147bcbd004e603

Other sources

Craft CMS contains a code injection vulnerability caused by improper validation of the database backup path, ultimately enabling remote code execution.

CISA

Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. This is an remote code execution (RCE) vulnerability that affects Craft 4 and 5 installs where your security key has already been compromised. Anyone running an unpatched version of Craft with a compromised security key is affected. This vulnerability has been patched in Craft 5.5.8 and 4.13.8. Users who cannot update to a patched version, should rotate their security keys and ensure their privacy to help migitgate the issue.

NVD

Affected Software

12 affected componentsFixes available
composer/craftcms/cms>=4.0.0-RC1<4.13.8
4.13.8
composer/craftcms/cms>=5.0.0-RC1<5.5.5
5.5.8
Craft Craft CMS<5.5.8, <4.13.8
CraftCMS Craft CMS>4.0.0<4.13.8
CraftCMS Craft CMS>5.0.0<5.5.8
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
Craft CMS Craft CMS

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 4.13.8
  2. Upgrade

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

    Fixed in 5.5.8
  3. Operational

    Rotate the application's security key (replace any potentially compromised security key) and ensure its privacy — do not expose the new or old keys in public version control, logs, or other places where they could be leaked.

Event History

Jan 18, 2025
CVE Published
via MITRE·12:32 AM
Data Sourced
via MITRE·12:32 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 21, 2025
Advisory Published
via GitHub·07:48 PM
Feb 20, 2025
Known Exploited
via CISA·12:00 AM
Feb 21, 2025
News Published
via BleepingComputer·03:57 PM
News Published
via BleepingComputer·03:59 PM
Apr 25, 2025
News Published
via BleepingComputer·07:44 PM

Peer vulnerabilities

Found alongside the following vulnerabilities.

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-23209?

CVE-2025-23209 is rated as a critical remote code execution vulnerability affecting Craft CMS installations.

2

How do I fix CVE-2025-23209?

To fix CVE-2025-23209, upgrade your Craft CMS installation to version 4.13.8 or 5.5.8 or later.

3

Who is affected by CVE-2025-23209?

CVE-2025-23209 affects users of Craft CMS 4.x and 5.x with a compromised security key.

4

What are the consequences of CVE-2025-23209?

Exploitation of CVE-2025-23209 could allow an attacker to execute arbitrary code on the affected server.

5

Is there a way to mitigate CVE-2025-23209?

To mitigate CVE-2025-23209, ensure your security keys are not compromised and upgrade to the patched versions.

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