CVE-2024-56145: Craft CMS Code Injection Vulnerability
Yes. CVE-2024-56145 has been used in real attacks. CISA added it to its Known Exploited Vulnerabilities catalog on 2 June 2025. Public exploit code is available: 1 Metasploit module and a Nuclei detection template. EPSS puts the chance of further exploitation attempts in the next 30 days at 97.3%.
- Exploited in real attacks
- Yes. On CISA's exploited list since 2 June 2025
- Used in ransomware
- Not known
- Public exploit code
- 1 Metasploit module and a Nuclei detection template
- Chance of exploitation (EPSS)
- 97.3% in the next 30 days, higher than 99.9% of scored vulnerabilities. Scored 5 December 2026
- Severity (CVSS)
- 9.3 Critical (version 4.0)
- Affects
- Craft CMS Craft CMS
- Type of flaw
- Code injection (CWE-94)
- Published
- 18 December 2024
- US federal patch deadline
- 23 June 2025
What it is
Craft CMS contains a code injection vulnerability. Users with affected versions are vulnerable to remote code execution if their php.ini configuration has `register_argc_argv` enabled.
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.
Description from the CVE record.
Is CVE-2024-56145 being exploited?
Yes. CISA lists a vulnerability as known exploited only when it has reliable evidence of exploitation in real attacks, and it added CVE-2024-56145 on 2 June 2025.
Public exploit code
These are public references that anyone, including an attacker, can find. Their existence lowers the skill needed to use the flaw.
| Source | Entry | Published |
|---|---|---|
| Metasploit | Craft CMS Twig Template Injection RCE via FTP Templates Path | |
| Nuclei template | Craft CMS - Remote Code Execution via Template Path Manipulation |
Affected products
- craftcms cms: >= 4.0.0-RC1, < 4.13.2; >= 5.0.0-RC1, < 5.5.2; >= 3.0.0, < 3.9.14
From the CVE record. Check the vendor advisory for the full list of fixed versions.
What to do
CISA's 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.
Because this flaw has already been used in attacks, patching is only half the job. If an affected system was reachable while unpatched, check it for signs of compromise before trusting it again.
How to check whether you are exposed
- Find every copy. List each place Craft CMS runs, including test systems and anything set up outside IT.
- Compare versions. Match what you find against the affected versions in the vendor advisory.
- Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
- Assume it has been scanned. A public Nuclei template exists for this flaw, so finding exposed systems across the internet is automated.
HackDrill
Find out whether this is reachable in your systems.
A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one in Craft CMS. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.
Other tracked vulnerabilities in Craft CMS products
| CVE | What it affects | Status | EPSS | Published |
|---|---|---|---|---|
| CVE-2025-32432 | Craft CMS | Public exploit | 99.8% | 25 April 2025 |
| CVE-2025-35939 | Craft CMS | No public exploit found | 3.5% | 7 May 2025 |
| CVE-2025-23209 | Craft CMS | No public exploit found | 22.1% | 18 January 2025 |
Sources
- CVE record for CVE-2024-56145
- NVD entry
- CISA Known Exploited Vulnerabilities catalog, version 2026.12.04
- FIRST EPSS, scores dated 5 December 2026
- github.com (x_refsource_CONFIRM)
- github.com (x_refsource_MISC)
Machine-readable: /api/cve/CVE-2024-56145.json