Stackurity Start free trial

CVEs / CVE-2025-23209

CVE-2025-23209: Craft CMS Code Injection Vulnerability

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2025-23209

Summary

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

CISA, Known Exploited Vulnerabilities catalog

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.

The CVE record, via NVD · published 18 Jan 2025 · NVD status: Analyzed

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
craftcms cms>= 5.0.0-RC1, < 5.5.5—
craftcms cms>= 4.0.0-RC1, < 4.13.8—
As stated by OSV
ProductAffectedFixed in
craftcms/cms (Packagist)from 5.0.0-RC1, before 5.5.85.5.8
craftcms/cms (Packagist)from 4.0.0-RC1, before 4.13.84.13.8

Package versions from GHSA-x684-96hh-833x.

Exploitation

In CISA KEV since20 Feb 2025
Due date for US federal agencies13 Mar 2025
Used in ransomware campaignsUnknown
Required actionApply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Severity

CVSS 3.18.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by NVD
WeaknessCWE-94

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.