CVE-2024-56145
Craft CMS Code Injection Vulnerability
- Actively exploited
- Critical · 9.3 of 10
- Exploited since
- 2 Jun 2025 added to the CISA list
- Chance of attacks
- 97% in the next 30 days (FIRST EPSS)
- Fix deadline
- 23 Jun 2025 for US federal agencies
- Published
- 18 Dec 2024 in the NVD
What this means
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
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.
NIST National Vulnerability Database
What to do
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
CISA's required action. If you use the product, install the vendor's update as soon as possible.
Affected
- craftcms cms
Official sources
- nvd.nist.gov/vuln/detail/CVE-2024-56145
- github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9 vendor advisory
- github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3
- github.com/Chocapikk/CVE-2024-56145
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145
Data from the NIST National Vulnerability Database, the CISA Known Exploited Vulnerabilities list, FIRST EPSS and ENISA, checked 18 Nov 2026. CVSS 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:.