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 scores
| Version | Scored by | Score | Vector |
|---|---|---|---|
| CVSS 4.0 | GitHub_M (CNA) | 9.3 Critical | 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 |
| CVSS 4.0 | github.com (CNA) | 9.3 Critical | 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 |
| CVSS 3.1 | NVD (NIST) | 9.8 Critical | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Timeline
- CVE published
- Added to CISA KEV (exploited in the wild)
- CISA remediation deadline (passed)
- Last updated by the CVE authority
- First tracked by SecureCyberVM
Exploit likelihood (EPSS)
Exploitation
- Listed in the CISA Known Exploited Vulnerabilities catalog on 2025-06-02.
- U.S. federal remediation due date: 2025-06-23.
Am I affected?
- Do you run craftcms cms? Check the exact versions in the affected products list.
- Is the affected service reachable from the internet or by untrusted users? Exposed systems come first.
- It is actively exploited: assume attackers are scanning for it and look for indicators of compromise on exposed systems.
- Apply the vendor's update as soon as it is available; restrict access to the service until then.
Affected products
- craftcms cms: >= 4.0.0-RC1, < 4.13.2; >= 5.0.0-RC1, < 5.5.2; >= 3.0.0, < 3.9.14 · All craftcms vulnerabilities
Mitigations
- CISA 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.
Weakness
CWE-94: Improper Control of Generation of Code ('Code Injection')
Other craftcms vulnerabilities
- CVE-2025-32432 Exploited Craft CMS Allows Remote Code Execution
- CVE-2025-23209 Exploited Potential RCE with a compromised security key in craft/cms
All craftcms vulnerabilities →
Frequently asked questions
Is CVE-2024-56145 being actively exploited?
Yes. CISA added CVE-2024-56145 to its Known Exploited Vulnerabilities catalog on 2025-06-02, which means attackers are using it in real attacks. US federal agencies must fix it by 2025-06-23.
How severe is CVE-2024-56145?
CVE-2024-56145 has a highest CVSS score of 9.8 (Critical) under CVSS 3.1. Severity alone is not priority: check exploitation status and whether you run an affected version.
How do I fix CVE-2024-56145?
Update Craft CMS to 3.9.14, 4.13.2, 5.5.2 or later. If you cannot update yet, set register_argc_argv = Off in php.ini.
Which products are affected by CVE-2024-56145?
Craft CMS 3.0.0 before 3.9.14, 4.0.0-RC1 before 4.13.2 and 5.0.0-RC1 before 5.5.2, when register_argc_argv is enabled in php.ini.. See the affected products list on this page for exact versions.
References
- https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9
- https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3
- https://github.com/Chocapikk/CVE-2024-56145
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145
Change log
- First recorded on SecureCyberVM from CVE.org, NVD, CISA KEV and FIRST EPSS.
Sources: CVE.org, NIST NVD, CISA KEV and ADP, FIRST EPSS. This record is refreshed automatically every day; changes are listed in the change log above.
