Vulnerability record · CVE-2024-56145 · published 18 December 2024
CVE-2024-56145: Craft CMS code injection via register_argc_argv leads to RCE
Craftcms · Craft Cms
Craft CMS contains a code injection flaw (CWE-94) that allows remote code execution when the PHP setting register_argc_argv is enabled. The vendor describes the vector as unspecified but confirms affected users can be exploited remotely. It matters because the flaw is unauthenticated, network-reachable, and rated critical, and it is already listed in CISA KEV.
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.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:
Automated analysis
critical priorityUnauthenticated network-reachable RCE with a critical CVSS score, KEV listing, public exploit, and near-maximum EPSS probability.
What it is
Craft CMS contains a code injection flaw (CWE-94) that allows remote code execution when the PHP setting register_argc_argv is enabled. The vendor describes the vector as unspecified but confirms affected users can be exploited remotely. It matters because the flaw is unauthenticated, network-reachable, and rated critical, and it is already listed in CISA KEV.
Impact
An unauthenticated attacker can execute arbitrary code on the server, giving full control of the Craft CMS host and any data or credentials it can reach.
Attack surface
Reachable over the network with no authentication and no user interaction per the CVSS 4.0 vector (AV:N/PR:N/UI:N). Exploitation depends on the target's php.ini having register_argc_argv enabled.
Exploitation
CVE-2024-56145 is in CISA KEV with a 2025-06-23 remediation due date, and a public exploit reference exists on GitHub. EPSS is 0.97446 (99.9th percentile), indicating very high likelihood of exploitation activity.
What to do
- Upgrade Craft CMS to 3.9.14, 4.13.2, or 5.5.2 as directed by the vendor advisory.
- If immediate upgrade is not possible, disable register_argc_argv in php.ini as the vendor's interim mitigation.
- Follow BOD 22-01 guidance for cloud-hosted instances and treat the KEV due date of 2025-06-23 as the remediation deadline.
- Audit for prior compromise (webshells, unexpected admin accounts, outbound connections) before or during patching.
- Restrict network exposure of Craft CMS admin and front-end endpoints where operationally feasible.
Detection
- Search web and PHP logs for requests containing argv-style or CLI-like parameters reaching Craft CMS endpoints.
- Monitor for unexpected PHP file creation or modification under the webroot, especially in writable directories.
- Alert on new or unusual outbound network connections from the Craft CMS host.
- Check php.ini across all Craft CMS hosts to confirm register_argc_argv is disabled or the instance is patched.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2024-56145 to the Known Exploited Vulnerabilities catalog on 2 June 2025 as "Craft CMS Code Injection Vulnerability". Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. Federal deadline 23 June 2025.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2024-56145 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2024-56145), CISA KEV, FIRST EPSS (scores of 2026-09-25). This page is refreshed as NVD updates the record.