Stackurity Start free trial

CVEs / CVE-2024-56145

CVE-2024-56145: 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-2024-56145

Summary

Craft CMS contains a code injection vulnerability. Users with affected versions are vulnerable to remote code execution if their php.ini configuration has `register_argc_argv` enabled.

CISA, Known Exploited Vulnerabilities catalog

Description

Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. Users of affected versions are affected by this vulnerability if their php.ini configuration has `register_argc_argv` enabled. For these users an unspecified remote code execution vector is present. Users are advised to update to version 3.9.14, 4.13.2, or 5.5.2. Users unable to upgrade should disable `register_argc_argv` to mitigate the issue.

The CVE record, via NVD · published 18 Dec 2024 · NVD status: Analyzed

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
craftcms cms>= 4.0.0-RC1, < 4.13.2—
craftcms cms>= 5.0.0-RC1, < 5.5.2—
craftcms cms>= 3.0.0, < 3.9.14—
As stated by OSV
ProductAffectedFixed in
craftcms/cms (Packagist)from 5.0.0-RC1, before 5.5.25.5.2
craftcms/cms (Packagist)from 4.0.0-RC1, before 4.13.24.13.2
craftcms/cms (Packagist)from 3.0.0, before 3.9.143.9.14

Package versions from GHSA-2p6p-9rc9-62j9.

Exploitation

In CISA KEV since2 Jun 2025
Due date for US federal agencies23 Jun 2025
Used in ransomware campaignsUnknown
Required actionApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Severity

CVSS 3.19.8 critical
CVSS:3.1/AV:N/AC:L/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.