CVE-2025-23209 Craft CMS Code Injection

Exploited in the wild High 8.1 Published Updated

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.

PackageAffectedFixed in
craftcms/cms PackagistFrom 4.0.0-RC14.13.8
craftcms/cms PackagistFrom 4.0.0-RC14.13.8
craftcms/cms PackagistFrom 5.0.0-RC15.5.8
craftcms/cms PackagistFrom 5.0.0-RC15.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.

All Craftcms Craft Cms vulnerabilities

Sources

Also known as GHSA-x684-96hh-833x.

Is CVE-2025-23209 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free