CVE-2025-23209 Craft CMS Code Injection
Attackers with a compromised security key can achieve remote code execution in Craft CMS installations.
- Exploited in the wild
- Since 20 Feb 2025
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-23209?
CVE-2025-23209 is a high-severity code injection vulnerability in Craftcms Craft Cms, published on 18 Jan 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-94
Which versions are affected by CVE-2025-23209?
4 open source packages ship an affected version, including craftcms/cms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
craftcms/cms Packagist | From 4.0.0-RC1 | 4.13.8 |
craftcms/cms Packagist | From 4.0.0-RC1 | 4.13.8 |
craftcms/cms Packagist | From 5.0.0-RC1 | 5.5.8 |
craftcms/cms Packagist | From 5.0.0-RC1 | 5.5.8 |
Products include Craftcms Craft Cms.
How do I fix CVE-2025-23209?
Upgrade craftcms/cms to a fixed version for your release line: 4.13.8 or 5.5.8. US federal agencies must fix it by 13 Mar 2025.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-23209 being exploited?
Yes. Attackers have exploited CVE-2025-23209 in the wild since at least 20 Feb 2025.
Other vulnerabilities in Craftcms Craft Cms
Sources
Also known as GHSA-x684-96hh-833x.