CVE-2024-56145: Craft CMS Code Injection Vulnerability
Vulnerability summary
CVE-2024-56145 is a critical (CVSS 9.8) Code Injection vulnerability in Craft CMS. It is known to be exploited: CISA lists it, first on 02-06-2025. EPSS estimates a 97.41% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 2 public exploits are recorded.
Timeline
- 18-12-2024PublishedVulnerability first disclosed.
- 02-06-2025Added to CISA KEVCraft CMS Code Injection Vulnerability
- 23-06-2025CISA remediation dueApply mitigations per vendor instructions.
- 21-10-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST9.3CriticalCVSS: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
EPSS trend
Probability
97.41%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
-0.04 pp
From 97.45% on 20-09-2026
Known exploited
Compare KEV catalogs- Added
- 02-06-2025
- Federal due date
- 23-06-2025
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. github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9 nvd.nist.gov/vuln/detail/CVE-2024-56145
Public exploits
2 foundCve 2024 56145
Maturity: poc
Craft CMS Twig Template Injection RCE via FTP Templates Path
exploit/linux/http/craftcms_ftp_template
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
1 vendor · 2 products
References
4 links- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145Government ResourceUS Government Resource