CVE-2024-56145Craft CMS remote code execution via register_argc_argv
CVSS score
9.3
Critical
CVSS 4.0 from github.com
Exploit probability (EPSS)
97.5%
97.5% chance of exploitation in the next 30 days, higher than 99.9% of all CVEs.
CISA KEV
Actively exploited
Added to KEV on 2 Jun 2025.
US federal deadline to fix: 23 Jun 2025.
In plain words
Unauthenticated remote attackers can run code on Craft CMS sites when PHP has register_argc_argv enabled in php.ini. Versions 3.0.0 to before 3.9.14, 4.0.0 to before 4.13.2 and 5.0.0 to before 5.5.2 are affected, and CISA reports active exploitation. Update to 3.9.14, 4.13.2 or 5.5.2, or disable register_argc_argv if you cannot upgrade yet.
Official 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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Treat it as urgent
Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 2 Jun 2025.
US federal agencies must fix it by 23 Jun 2025. It's a sensible deadline for everyone else too.
CISA's full instruction
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Check whether you're affected
Find every system running Craft Cms, Craft CMS Cms and compare its version with the affected versions.
Update to a fixed version
- Update Craft Cms, Cms to 3.9.14, 4.13.2, 5.5.2 or later, on the branch you run.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Check for signs of compromise
Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. 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/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
Affected products
| Affected products | Versions |
|---|---|
| Craft CMS Craft Cms | ≥ 3.0.0, < 3.9.14 · ≥ 4.0.0, < 4.13.2 · ≥ 5.0.0, < 5.5.2 |
| Craft CMS Cms | >= 4.0.0-RC1, < 4.13.2 · >= 5.0.0-RC1, < 5.5.2 · >= 3.0.0, < 3.9.14 |
Weakness
- CWE-94 code injection
Timeline
- Published:
- Added to CISA KEV:
- Last modified:
Frequently asked questions
Is CVE-2024-56145 being exploited?
Yes. CISA added CVE-2024-56145 to its Known Exploited Vulnerabilities catalog on 2 Jun 2025, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 97.5% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2024-56145?
CVE-2024-56145 has a CVSS 4.0 base score of 9.3 (critical).
Which versions are affected?
Craft CMS Craft Cms (≥ 3.0.0, < 3.9.14; ≥ 4.0.0, < 4.13.2; ≥ 5.0.0, < 5.5.2), Craft CMS Cms (>= 4.0.0-RC1, < 4.13.2; >= 5.0.0-RC1, < 5.5.2; >= 3.0.0, < 3.9.14)
Is there a patch for CVE-2024-56145?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3(Patch)
- github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9(Vendor Advisory)
- github.com/Chocapikk/CVE-2024-56145(Exploit)
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145(US Government Resource)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.