Security Digest · Vulnerability record · Known exploited

CVE-2024-56145: Craft CMS Code Injection Vulnerability

Exploited in the wild (CISA KEV). Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond.

CISA KEV · added 2025-06-02 CVSS 9.3 Critical EPSS 97.4% · p99.9

Should you act?

Exploited: patch now if you run it

CISA has confirmed exploitation in the wild. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • Yes, if you run Craft CMS Craft CMS. CISA added this CVE to its Known Exploited Vulnerabilities catalog on 2025-06-02, which means there is reliable evidence of exploitation in the wild. US federal agencies must remediate by 2025-06-23; treat that as the outer limit, not the target.
  • EPSS 97.4%, percentile 99.9: FIRST’s model estimates a 97.4% chance of exploitation activity in the next 30 days, higher than 99.9% of all scored CVEs (very high). EPSS is a probability, not a verdict.
  • Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
  • Only applies if your dependency tree includes craftcms/cms (Composer (PHP)) >= 5.0.0-RC1, < 5.5.2, fixed in 5.5.2; craftcms/cms (Composer (PHP)) >= 4.0.0-RC1, < 4.13.2, fixed in 4.13.2; craftcms/cms (Composer (PHP)) >= 3.0.0, < 3.9.14, fixed in 3.9.14. Check your lockfile, including transitive dependencies.

What it is

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 registerargcargv 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 registerargcargv to mitigate the issue.

From the GitHub advisory

Impact You are affected if your php.ini configuration has registerargcargv enabled.

Patches Update to 3.9.14, 4.13.2, or 5.5.2.

Workarounds If you can't upgrade yet, and registerargcargv is enabled, you can disable it to mitigate the issue.

CISA’s summary

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.

Weakness type: CWE-94, CWE-78.

Product: Craft CMS Craft CMS · Assigned by: GitHub_M · Published: 2024-12-18

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
Composer (PHP)craftcms/cms>= 5.0.0-RC1, < 5.5.25.5.2
Composer (PHP)craftcms/cms>= 4.0.0-RC1, < 4.13.24.13.2
Composer (PHP)craftcms/cms>= 3.0.0, < 3.9.143.9.14
VendorProductAffected versions (per CVE record)
craftcmscms>= 4.0.0-RC1, < 4.13.2, >= 5.0.0-RC1, < 5.5.2, >= 3.0.0, < 3.9.14

Severity scores

Scored byCVSSScoreVector
GitHub_M4.09.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHub4.09.3 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:A
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Attack requirements: none
  • Privileges required: none (no login)
  • User interaction: none

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: added 2025-06-02; federal due date 2025-06-23. Known ransomware use: Unknown.
  • 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 SSVC assessment: exploitation active, automatable yes, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 97.41% probability of exploitation activity in the next 30 days; percentile 99.9.

Timeline

  • — CVE record published by GitHub_M
  • — GitHub-reviewed advisory GHSA-2p6p-9rc9-62j9 published (critical)
  • — Added to CISA’s Known Exploited Vulnerabilities catalog
  • — CISA remediation deadline for US federal agencies
  • — CVE record last updated

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vendor and project advisories, patches

  1. Listed in CISA KEV notes (github.com) github.com

Vulnerability records

  1. GitHub Advisory GHSA-2p6p-9rc9-62j9 github.com
  2. CVE.org record CVE-2024-56145 cve.org
  3. NVD entry CVE-2024-56145 nvd.nist.gov

Government

  1. CISA Known Exploited Vulnerabilities catalog entry cisa.gov

Other references from the CVE record and advisory

  1. github.com github.com
  2. github.com github.com

All exploited Craft CMS vulnerabilities · Critical Composer (PHP) advisories · Today’s Security Digest