Patchfirst
CVE-2024-56145 KEVPublic exploit Critical · 9.8 EPSS 97.5%

Craft CMS Code Injection Vulnerability

Craft CMS · Craft CMS

Summary

Craft CMS contains a code injection flaw, classed as improper control of code generation, that affects installations where PHP's register_argc_argv setting is enabled in php.ini. An attacker with remote network access can achieve remote code execution through an unspecified vector, requiring no authentication or user interaction, provided that setting is on.

Official description · NVD

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.

Breakdown
69.8 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
3/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 5 months after disclosure. Public exploit code (Metasploit) appeared 1 day after disclosure.

  1. Disclosedday 0
  2. Public exploit codeMetasploit+1 day
  3. First seen exploitedVulnCheck KEV evidence+5 mo
  4. Added to CISA KEVEU database agrees+5 mo

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

See the family tree

A fix was bypassed or incomplete once over 19 months. The latest fix listed for craftcms/cms is 5.6.17.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2023-41892Craft CMS Remote Code Execution13 Sep 2023
  2. same family
    This CVECVE-2024-56145Craft CMS Code Injection18 Dec 2024KEV
  3. Next fix in the same packageMedium

    Why these are linked:

    • Fixed one release later3.9.14 → 3.9.15 (craftcms/cms)
    • Similar weakness in the same product (machine-matched)same product + CWE + description similarity
    CVE-2025-32432Craft CMS Code Injection25 Apr 2025KEV

Fixes in craftcms/cmsPackagist package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 4.5.11CVE-2024-216223 Jan 2024
  2. 5.4.3CVE-2024-5229313 Nov 2024
  3. 5.4.6CVE-2024-5229113 Nov 2024
  4. 5.4.9CVE-2024-5229213 Nov 2024
  5. 5.5.2CVE-2024-5614518 Dec 2024KEV
  6. 5.5.8CVE-2025-2320918 Jan 2025KEV
  7. 5.6.15CVE-2025-467315 May 2025
  8. 5.6.17CVE-2025-3243225 Apr 2025KEVLatest listed

techniques

2 , grouped by in kill-chain order 2

ExecutionTA0002

MITRE CTID mapping of the KEV entry · primary impact

This vulnerability, which is dependent on the PHP configuration setting, "register_argc_argv" being enabled, can allow an attacker to craft a malicious HTTP request that CMS can process as legitimate, leading to remote code execution and, potentially, full system compromise.

Privilege EscalationTA0004

Process Injection T1055 also Stealth
MITRE CTID mapping of the KEV entry · how it is exploited

Detection

0 rules for this CVE · 132 general rules for its techniques

Rules for this CVE

0 that reference CVE-2024-56145 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: craftcms/cms.

Packagistcraftcms/cmsGHSA-2p6p-9rc9-62j9

Upgrade to 5.7.5 or later

Fixes this CVE and 3 other known vulnerabilities in this package (CVE-2025-23209, CVE-2025-32432, +1).

Set the version to 5.7.5 or later in your composer.json.

First fixed in 5.5.2 for CVE-2024-56145.

Affected versions, by release line

If you runUpgrade to
5.0.0-RC1 up to 5.5.25.7.5first fix for this CVE: 5.5.2
4.0.0-RC1 up to 4.13.24.15.3first fix for this CVE: 4.13.2
3.0.0 up to 3.9.14

Still affected on this line by CVE-2025-35939 (fixed in 4.15.3, a newer line).

3.9.15first fix for this CVE: 3.9.14

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close