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.
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
CVSS v4
9.3
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 · source cna
Exploit chance (EPSS)
97.482%
chance of exploitation in the next 30 days
higher than 99.9% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2025-06-02
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 1
Nuclei templates: 1
Weakness
- CWE-94: Improper Control of Generation of Code
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Craft CMS Code Injection Vulnerability |
|---|---|
| Vendor / product | Craft CMS / Craft CMS |
| Date added | 2025-06-02 |
| Federal remediation due date | 2025-06-23 |
| 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. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2025-06-06 |
Timeline
- 2024-12-18Published by the CNA20:37 UTC
- 2024-12-18GitHub advisory published (GHSA-2p6p-9rc9-62j9)same day
- 2025-06-02Added to the CISA KEV catalog166 days after publication
- 2025-06-06CISA SSVC decision recorded170 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2024-56145: Craft CMS - Remote Code Execution via Template Path Manipulation
GitHub advisory GHSA-2p6p-9rc9-62j9, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Packagist craftcms/cms | from 3.0.0 before 3.9.14 | 3.9.14 |
| Packagist craftcms/cms | from 4.0.0-RC1 before 4.13.2 | 4.13.2 |
| Packagist craftcms/cms | from 5.0.0-RC1 before 5.5.2 | 5.5.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| craftcms craft_cms | from 3.0.0 before 3.9.14fixed in 3.9.14from 4.0.0 before 4.13.2fixed in 4.13.2from 5.0.0 before 5.5.2fixed in 5.5.2 | 3.9.144.13.25.5.2 |
References
- https://github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3
- https://github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9
- https://github.com/Chocapikk/CVE-2024-56145
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2024-56145'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2024-56145'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2024-56145'curl 'https://api.contrastcyber.com/cve_products/CVE-2024-56145'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2024-56145'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).