Skip to content
Server Security Center
KEVcritical9.3

CVE-2024-56145: Craft CMS Code Injection

Craft CMS · listed in the CISA catalog of actively exploited vulnerabilities since 2025-06-02.

CVSS v4.0 (CVE record)
9.3
critical
EPSS (exploit probability, 30 days)
97%
among the highest 0.1% of all CVEs
Added to CISA KEV
2025-06-02
US federal due date 2025-06-23
Automatable (CISA SSVC)
yes
technical impact: total

CVE-2024-56145 explained

CVE-2024-56145 is a code injection flaw in Craft CMS. On servers where the PHP setting register_argc_argv is enabled in php.ini, an unspecified remote code execution vector is present. CISA lists it as known to be exploited, so affected sites need prompt attention.

Impact

On affected Craft CMS installations with register_argc_argv enabled, a remote attacker can execute code on the server. CISA rates the flaw as automatable, so it can be exploited at scale without manual steps. The technical impact is total, meaning full control of the affected component. Attackers are known to use this vulnerability. Whether it has been used in ransomware campaigns is unknown.

Who is affected

The CVE record lists craftcms cms with the entries 3.0.0, < 3.9.14, 4.0.0-RC1, < 4.13.2, 5.0.0-RC1 and < 5.5.2, covering the 3, 4 and 5 branches. Exposure requires register_argc_argv to be enabled. The record's fixedIn field names no fixed version, but the description advises updating to 3.9.14, 4.13.2 or 5.5.2.

Written with AI from the data on this page and checked against it automatically.

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.

CISA 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.

CISA notes

Affected and fixed versions

From the CVE record published by the vendor or CVE numbering authority.

  • craftcms cms
    Affected
    • 3.0.0
    • < 3.9.14
    • 4.0.0-RC1
    • < 4.13.2
    • 5.0.0-RC1
    • < 5.5.2
    Fixed in
    not stated

How to fix it

  • The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
  • Vendor advisory: github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc…
  • CISA's deadline for US federal agencies: 2025-06-23 (passed) – a useful benchmark for everyone else, too.

What to do

  1. Update Craft CMS to 3.9.14, 4.13.2 or 5.5.2, matching your branch, as advised in the description.
  2. If you cannot upgrade right away, disable register_argc_argv in php.ini and restart PHP.
  3. Follow the vendor advisory and CISA's required action, including BOD 22-01 guidance for cloud services.
  4. Check affected servers for signs of compromise, such as unexpected files, processes or admin accounts.
  5. Discontinue use of the product if mitigations are unavailable, as CISA's required action states.

The CVE record's fixedIn field names no fixed version. The description advises updating to 3.9.14, 4.13.2 or 5.5.2; confirm these in the vendor advisory. Until you can upgrade, disable register_argc_argv in php.ini. CISA requires applying mitigations per vendor instructions or discontinuing use if mitigations are unavailable.

Written with AI from the data on this page and checked against it automatically.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
Yes – attackers can automate it at scale
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-94 Improper Control of Generation of Code ('Code Injection')

Questions about CVE-2024-56145

Is every Craft CMS installation in the affected range vulnerable?
According to the description, only installations whose php.ini has register_argc_argv enabled are affected. Disabling that setting mitigates the issue, but upgrading is still advised.
Is this vulnerability being exploited?
Yes. CISA added CVE-2024-56145 to its Known Exploited Vulnerabilities catalog on 2025-06-02, with a US federal due date of 2025-06-23. Ransomware use is listed as unknown.
Which version should I upgrade to?
The description advises 3.9.14 for the 3 branch, 4.13.2 for the 4 branch and 5.5.2 for the 5 branch.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.