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
RCE when PHP register_argc_argv config setting is enabled in craftcms/cms
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
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
This CVE appears in the CISA Known Exploited Vulnerabilities catalog.
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.
craftcms/CVE-2024-56145
CraftCMS `register_argc_argv` Leads to Remote Code Execution (CVE-2024-56145)
modules/exploits/linux/http/craftcms_ftp_template.rb
http/cves/2024/CVE-2024-56145.yaml
CVE-2024-56145 SSTI to RCE - twig templates
Docker-based lab environment to reproduce and exploit CVE-2024-56145, a PHP register_argc_argv RCE vulnerability in CraftCMS, with step-by-step setup and exploitation guidance.
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.