Craft CMS code injection with register_argc_argv enabled
CVE-2024-56145Known exploitedCritical
Craft CMS contains a code injection vulnerability that allows remote code execution when the PHP configuration setting `register_argc_argv` is enabled. An attacker can exploit this to execute arbitrary code on the server. The vulnerability only affects systems where `register_argc_argv` is set to on in the php.ini file.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
- Added to KEV
- 2 Jun 2025
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
Detail
Craft CMS. 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 (opens in a new tab)
Affected versions
- craftcms craft cms: from 3.0.0, before 3.9.14
- craftcms craft cms: from 4.0.0, before 4.13.2
- craftcms craft cms: from 5.0.0, before 5.5.2