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.
CVE-2024-56145
Score elevated to 9.8 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2025-06-02), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 9.8 retained for reference. Confidence: HIGH.
- Actively exploited in the wild (CISA-KEV)
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 9.8
- EG Score
- 9.8(high)
- EPSS
- 99.9%
- KEV
- ⚠ Exploited
Published
December 18, 2024
Last Modified
October 24, 2025
Advisory Details (4)
Auto-updated May 31, 2026Known Exploited Vulnerabilities Catalog | CISA
Known Exploited Vulnerabilities Catalog | CISA. Listed in CISA Known Exploited Vulnerabilities catalog.
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145GitHub - Chocapikk/CVE-2024-56145: Unauthenticated RCE on CraftCMS when PHP `register_argc_argv` config setting is enabled · GitHub
https://github.com/Chocapikk/CVE-2024-56145Potential RCE when PHP `register_argc_argv` config setting is enabled · Advisory · craftcms/cms · GitHub
https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9commit 82e893fb794d (craftcms/cms)
Patch available: craftcms/cms 4.17.10 (contains commit 82e893fb794d)
https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3Affected Packages
(1 across 1 ecosystem)
Packagist(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| craftcms/cms | 3.0.0 ... 3.9.6 (435 versions) | 3.9.14 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 6× in last 7d / 21× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-22 19:40 UTCCISA KEV update
- 2026-07-22 16:53 UTCEG score recompute
- 2026-07-22 14:07 UTCEPSS rescore
- 2026-07-21 14:37 UTCCISA KEV update
- 2026-07-17 10:13 UTCEG score recompute
- 2026-07-16 17:04 UTCCISA KEV update
- 2026-07-15 16:49 UTCCISA KEV update
- 2026-07-15 15:04 UTCCISA KEV update
- 2026-07-14 18:05 UTCCISA KEV update
- 2026-07-13 17:07 UTCCISA KEV update
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-10 17:52 UTCCISA KEV update
- 2026-07-07 19:01 UTCCISA KEV update
- 2026-07-07 17:16 UTCCISA KEV update
- 2026-07-01 19:16 UTCCISA KEV update
- 2026-06-29 19:12 UTCCISA KEV update
- 2026-06-25 19:15 UTCCISA KEV update
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-23 17:44 UTCCISA KEV update
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
Show 29 moreShow fewer
- 2026-06-18 16:13 UTCCISA KEV update
- 2026-06-16 19:33 UTCCISA KEV update
- 2026-06-15 19:33 UTCCISA KEV update
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-12 17:35 UTCCISA KEV update
- 2026-06-11 19:10 UTCCISA KEV update
- 2026-06-09 18:42 UTCCISA KEV update
- 2026-06-09 17:12 UTCCISA KEV update
- 2026-06-08 19:16 UTCCISA KEV update
- 2026-06-08 17:26 UTCCISA KEV update
- 2026-06-05 22:43 UTCCISA KEV update
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-03 19:09 UTCCISA KEV update
- 2026-06-02 18:32 UTCCISA KEV update
- 2026-06-01 20:42 UTCCISA KEV update
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-29 22:20 UTCCISA KEV update
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-27 20:35 UTCCISA KEV update
- 2026-05-26 19:13 UTCCISA KEV update
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-23 16:17 UTCEG score recompute
Publicly available exploits
(4 references)Working exploit code is in the public domain (1 Metasploit module) (2 GitHub PoCs). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCSachinart/CVE-2024-56145-craftcms-rceFirst seen Dec 22, 2024
CVE-2024-56145 SSTI to RCE - twig templates
Open source ↗ - GitHub PoCChocapikk/CVE-2024-56145First seen Dec 20, 2024
Unauthenticated RCE on CraftCMS when PHP `register_argc_argv` config setting is enabled
Open source ↗ - Metasploitexploit/linux/http/craftcms_ftp_template✓ verifiedFirst seen Dec 19, 2024
Craft CMS Twig Template Injection RCE via FTP Templates Path
Open source ↗ - Nucleihttp/cves/2024/CVE-2024-56145.yamlFirst seen Jan 1, 2024
Craft CMS - Remote Code Execution via Template Path Manipulation
Open source ↗
Frequently asked(6)
What is CVE-2024-56145?
When was CVE-2024-56145 disclosed?
Is CVE-2024-56145 actively exploited?
What is the CVSS score of CVE-2024-56145?
Which products are affected by CVE-2024-56145?
How do I remediate CVE-2024-56145?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2024-56145
Is Your Infrastructure Affected by CVE-2024-56145?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.