← Vulnerability feed

Vulnerability record · CVE-2024-56145 · published 18 December 2024

CVE-2024-56145: Craft CMS code injection via register_argc_argv leads to RCE

Craftcms · Craft Cms

Craft CMS contains a code injection flaw (CWE-94) that allows remote code execution when the PHP setting register_argc_argv is enabled. The vendor describes the vector as unspecified but confirms affected users can be exploited remotely. It matters because the flaw is unauthenticated, network-reachable, and rated critical, and it is already listed in CISA KEV.

9.3 CVSS 4.0 Critical CISA KEV since 2 Jun 2025 EPSS 97% · top 0.1% CWE-94 · Code injection
9.3CVSS 4.0 base score
97%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
1Affected product versions listed by NVD
4References, 1 tagged exploit
17 Jun 2026Last modified by NVD

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.

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:

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

critical priorityUnauthenticated network-reachable RCE with a critical CVSS score, KEV listing, public exploit, and near-maximum EPSS probability.

What it is

Craft CMS contains a code injection flaw (CWE-94) that allows remote code execution when the PHP setting register_argc_argv is enabled. The vendor describes the vector as unspecified but confirms affected users can be exploited remotely. It matters because the flaw is unauthenticated, network-reachable, and rated critical, and it is already listed in CISA KEV.

Impact

An unauthenticated attacker can execute arbitrary code on the server, giving full control of the Craft CMS host and any data or credentials it can reach.

Attack surface

Reachable over the network with no authentication and no user interaction per the CVSS 4.0 vector (AV:N/PR:N/UI:N). Exploitation depends on the target's php.ini having register_argc_argv enabled.

Exploitation

CVE-2024-56145 is in CISA KEV with a 2025-06-23 remediation due date, and a public exploit reference exists on GitHub. EPSS is 0.97446 (99.9th percentile), indicating very high likelihood of exploitation activity.

What to do

  • Upgrade Craft CMS to 3.9.14, 4.13.2, or 5.5.2 as directed by the vendor advisory.
  • If immediate upgrade is not possible, disable register_argc_argv in php.ini as the vendor's interim mitigation.
  • Follow BOD 22-01 guidance for cloud-hosted instances and treat the KEV due date of 2025-06-23 as the remediation deadline.
  • Audit for prior compromise (webshells, unexpected admin accounts, outbound connections) before or during patching.
  • Restrict network exposure of Craft CMS admin and front-end endpoints where operationally feasible.

Detection

  • Search web and PHP logs for requests containing argv-style or CLI-like parameters reaching Craft CMS endpoints.
  • Monitor for unexpected PHP file creation or modification under the webroot, especially in writable directories.
  • Alert on new or unusual outbound network connections from the Craft CMS host.
  • Check php.ini across all Craft CMS hosts to confirm register_argc_argv is disabled or the instance is patched.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2024-56145 to the Known Exploited Vulnerabilities catalog on 2 June 2025 as "Craft CMS Code Injection Vulnerability". 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. Federal deadline 23 June 2025.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-56145 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32432Craft CMS unauthenticated remote code execution via code injectionCraft CMS versions 3.0.0-RC1 through 3.9.14, 4.0.0-RC1 through 4.14.14, and 5.0.0-RC1 through 5.6.16 contain a code injection flaw enabling remote co…KEVEPSS 100%analysed8.1CVE-2025-23209Craft CMS code injection RCE with compromised security keyCraft CMS 4 and 5 contain a code injection flaw (CWE-94) that allows remote code execution when the installation's security key has already been comp…KEVEPSS 22%analysed6.9CVE-2025-35939Craft CMS unauthenticated session file write enables PHP code injectionCraft CMS stores unsanitized client-supplied return URL values in server-side session files for unauthenticated users. Because the session file path …KEVEPSS 1.3%analysed9.8CVE-2024-37843Craft CMS SQL injection via GraphQL API endpointCraft CMS up to v3.7.31 contains a SQL injection flaw reachable through its GraphQL API endpoint. The CVSS vector indicates the attack is network-rea…EPSS 53%analysed9.8CVE-2023-41892Craft CMS code injection enables unauthenticated remote code executionCraft CMS versions before 4.4.15 contain a code injection flaw (CWE-94) that allows remote code execution. The vendor describes it as a high-impact, …EPSS 94%analysed9.8CVE-2021-27903Craftcms craft cms missing authorization vulnerabilityAn issue was discovered in Craft CMS before 3.6.7. In some circumstances, a potential Remote Code Execution vulnerability existed on sites that did n…EPSS 2.8%9.8CVE-2020-9757SEOmatic for Craft CMS template injection leads to RCEThe SEOmatic component for Craft CMS before 3.3.0 is vulnerable to server-side template injection through malformed data sent to the metacontainers c…EPSS 73%analysed9.8CVE-2019-15929Craftcms craft cms weak password recovery vulnerabilityIn Craft CMS through 3.1.7, the elevated session password prompt was not being rate limited like normal login forms, leading to the possibility of a …EPSS 1.8%

Source: NIST National Vulnerability Database (record CVE-2024-56145), CISA KEV, FIRST EPSS (scores of 2026-09-25). This page is refreshed as NVD updates the record.