LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2024-56145: Craft CMS Code Injection Vulnerability

RBRecent Breaches Vulnerability Intelligence·Jun 2, 2025
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Jun 23, 2025
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2024-56145 to its Known Exploited Vulnerabilities catalog on Jun 2, 2025, with a federal patch deadline of Jun 23, 2025 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

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.

CVE-2024-56145 is a code injection vulnerability in Craft CMS that can allow remote code execution when the PHP configuration option register_argc_argv is enabled. Organizations running Craft CMS should treat this as a high-priority issue because successful exploitation can give an attacker the ability to run arbitrary code on the underlying server, potentially leading to full system compromise, data theft, or further lateral movement.

Public detail is limited to the CISA description and the associated CWE; exact affected versions, attack vectors, and scoring must be confirmed against the vendor advisory before making final risk decisions.

How it works

The vulnerability is classified as CWE-94, Improper Control of Generation of Code (Code Injection). In this class of flaw, an application fails to properly sanitize or restrict input that is later used to generate or execute code. For Craft CMS, the CISA summary states that users of affected versions become vulnerable to remote code execution specifically when their php.ini configuration has register_argc_argv enabled.

An attacker who can supply crafted input that reaches the vulnerable code path can cause the application to interpret that input as executable PHP. The register_argc_argv setting makes command-line style arguments available to PHP scripts even in a web context, which can expand the ways injected code is processed. No further exploit mechanics are provided in the available facts; defenders should assume that any unauthenticated or low-privilege request path capable of reaching the injection point could be abused until the vendor advisory is reviewed for precise conditions.

Am I affected? How to find it in your systems

Craft CMS is a PHP-based content management system commonly used to power public-facing websites, marketing sites, and digital experience platforms. It typically runs on Linux or Windows web servers under Apache, Nginx, or similar, often behind a reverse proxy or load balancer, and stores content in a relational database.

How to remediate

The primary remediation is to apply the vendor-supplied update for Craft CMS exactly as directed in the official advisory. CISA’s required action is to apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

If you can't patch immediately

Until the vendor update can be applied, reduce exposure with compensating controls appropriate to a code-injection / remote-code-execution class vulnerability.

If your data may have been exposed

Actively exploited remote-code-execution vulnerabilities frequently result in data breaches, credential theft, or installation of further malware. Ransomware use associated with this CVE is not documented in the available facts. If you suspect compromise, isolate the affected systems, preserve logs and forensic images, and follow your incident-response plan. As a quick additional check, you can run a free exposure scan of your email addresses against known breach data sets to determine whether any of your accounts already appear in public breach collections.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedCraft CMS · Craft CMS
WeaknessCWE-94
Added to CISA KEVJun 2, 2025
Federal patch deadlineJun 23, 2025
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities