CVE-2024-56145
KEV PoC large1Unauthenticated Code Injection RCE in Craft CMS
CISA: Craft CMS Code Injection Vulnerability
CVE-2024-56145 is an improper code-injection flaw (CWE-94) in Craft CMS that allows remote code execution over the network without authentication. The flaw is triggered on installations where the PHP configuration option `register_argc_argv` is enabled, a common setting, exposing an RCE vector to unauthenticated attackers. Successful exploitation gives attackers high-impact control over the host, with high confidentiality, integrity, and availability impact per the CVSS 4.0 score of 9.3. Users of Craft CMS 3.x, 4.x, and 5.x prior to the fixed releases are affected; the flaw has been added to CISA's Known Exploited Vulnerabilities catalog (as of 2025-06-02), carries a 97.4% EPSS probability of exploitation within 30 days, and has a public proof-of-concept available.
What to do: Upgrade Craft CMS to version 3.9.14, 4.13.2, or 5.5.2 as applicable to your major version. If upgrading is not immediately possible, set register_argc_argv=Off in php.ini and restart the PHP service to mitigate. Because the issue is in CISA's KEV catalog with active exploitation, check internet-facing Craft CMS instances for signs of compromise and apply required BOD 22-01 timelines if applicable.
| craftcms Craft CMS | 3.x prior to 3.9.14, 4.x prior to 4.13.2, and 5.x prior to 5.5.2, when the PHP setting register_argc_argv is enabled |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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.
- Affected
- Craft CMS Craft CMS
- 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.
- Due date
- Ransomware use
- Unknown
- Vendors
- craftcms
- Products
- craft cms
- Weakness
- CWE-94
- Vector
- 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:X/V:X/RE:X/U:X