CVE-2024-56145RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms
Known exploited — Craft CMS Code Injection Vulnerability
CISA confirmed this vulnerability is used in real attacks on 02.06.2025. Remediation deadline for US federal agencies: 23.06.2025.
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. https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9 ; https://nvd.nist.gov/vuln/detail/CVE-2024-56145
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.
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
References and patches
- https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9 Vendor Advisory
- https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3 Patch
- https://github.com/Chocapikk/CVE-2024-56145 Exploit
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145 US Government Resource
CPE matches (NVD) (3)
cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*≥ 3.0.0 < 3.9.14cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*≥ 4.0.0 < 4.13.2cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*≥ 5.0.0 < 5.5.2