CVE-2024-56145
RCE when PHP register_argc_argv config setting is enabled in craftcms/cms
- Published
- Dec 18, 2024
- Updated
- Oct 21, 2025
- Assigning CNA
- GitHub_M
- Evidence observed
- Jun 2, 2025
Primary CVSS
nvd · CVSS 4.0
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:XHigh · next 30 days
- Percentile
- 99.9%
- Model date
- Oct 17, 2026
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
CISA Known Exploited
This CVE appears in the CISA Known Exploited Vulnerabilities catalog.
Summary
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.
Sources
craftcms/CVE-2024-56145
CraftCMS `register_argc_argv` Leads to Remote Code Execution (CVE-2024-56145)
Vulhub vulnerability labsDeclared conditions
- lab image version: vulhub/craftcms:5.5.1.1(craftcms/CVE-2024-56145/docker-compose.yml:services.web.image)
- lab image version: mysql:8.4(craftcms/CVE-2024-56145/docker-compose.yml:services.db.image)
modules/exploits/linux/http/craftcms_ftp_template.rb
Metasploit Framework modulesDeclared conditions
- platform: Linux,Unix($.exploit_linux/http/craftcms_ftp_template.platform)
- verification: check_declared($.exploit_linux/http/craftcms_ftp_template.check)
http/cves/2024/CVE-2024-56145.yaml
Nuclei TemplatesDeclared conditions
- network: http($.protocol_keys)
- verification: status,word($.matchers[*].type)
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.