CVE-2024-56145: Craft CMS Code Injection Vulnerability
CVE-2024-56145 is a critical-severity flaw (CVSS 9.8) affecting craft cms, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 97.5% (top 1%) |
| CISA exploited list | Yes, fix due 2025-06-23 |
| Weakness | CWE-94 |
| Published | 2024-12-18 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: Chocapikk/CVE-2024-56145 (48 stars)
- GitHub PoC: Sachinart/CVE-2024-56145-craftcms-rce (4 stars)
- GitHub PoC: hmhlol/craft-cms-RCE-CVE-2024-56145 (0 stars)
- Metasploit: Craft CMS Twig Template Injection RCE via FTP Templates Path
- Nuclei scan template: Craft CMS - Remote Code Execution via Template Path Manipulation
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-56145?
craft cms: upgrade to 3.9.14, 4.13.2, 5.5.2. Exact commands for each OS are on this page.
Is CVE-2024-56145 being exploited?
Yes. CVE-2024-56145 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2024-56145 affect?
CVE-2024-56145 affects craft cms. Severity is critical (CVSS 9.8). 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 u
How urgent is CVE-2024-56145?
Priority 97/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2025-68456 CRITICAL 9.1 UPGRADE Craft is a platform for creating digital experiences
- CVE-2025-68454 HIGH 8.8 UPGRADE Craft is a platform for creating digital experiences
- CVE-2025-68455 HIGH 7.2 UPGRADE Craft is a platform for creating digital experiences
- CVE-2025-68437 MEDIUM 6.8 UPGRADE Craft is a platform for creating digital experiences
- CVE-2025-68436 MEDIUM 6.5 UPGRADE Craft is a platform for creating digital experiences