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

CVE-2024-4577: PHP-CGI OS Command Injection Vulnerability

RBRecent Breaches Vulnerability Intelligence·Jun 12, 2024
Critical⚠ Actively exploited (CISA KEV)Ransomware-linked
Critical
Severity
Active
CISA KEV
Yes
Ransomware use
Jul 3, 2024
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2024-4577 to its Known Exploited Vulnerabilities catalog on Jun 12, 2024, with a federal patch deadline of Jul 3, 2024 — meaning attackers are actively using it. If you run the affected software, patch it immediately. Ransomware crews are known to exploit this flaw.

PHP, specifically Windows-based PHP used in CGI mode, contains an OS command injection vulnerability that allows for arbitrary code execution. This vulnerability is a patch bypass for CVE-2012-1823.

CVE-2024-4577 is an OS command injection vulnerability in PHP Group PHP, specifically affecting Windows-based PHP when used in CGI mode. It allows an attacker to achieve arbitrary code execution and is described as a patch bypass for the older CVE-2012-1823. Because the flaw can lead to full system compromise and has known ransomware use, organizations running PHP on Windows should treat it as high priority and confirm all details against the vendor advisory.

Defenders need clear inventory, rapid patching, and interim controls to reduce the chance of remote code execution on exposed web servers.

How it works

The vulnerability is classified as CWE-78 (OS Command Injection). In affected Windows PHP installations running in CGI mode, crafted input can cause the PHP interpreter to pass attacker-controlled data to the operating system shell, resulting in arbitrary command execution under the privileges of the PHP process.

An attacker who can reach a vulnerable PHP-CGI endpoint can inject commands that the server then executes. This is a bypass of earlier fixes for a similar issue (CVE-2012-1823). Exact request formats and parameters are not detailed here; teams must consult the vendor advisory for the precise attack surface and any required conditions such as configuration flags or character encoding behavior.

Am I affected? How to find it in your systems

The issue is limited to Windows-based PHP used in CGI mode. PHP running under other SAPIs (for example, as an Apache module or via FastCGI/PHP-FPM on non-Windows platforms) is outside the stated scope, but every Windows PHP deployment should still be checked.

If inventory is incomplete, treat any internet-facing Windows PHP CGI endpoint as potentially vulnerable until verified.

How to remediate

Apply the vendor-supplied update or mitigation instructions for PHP as soon as possible. The CISA-required action is to apply mitigations per vendor instructions or to 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 that limit both reachability and impact.

These measures lower risk but do not eliminate it; schedule the official patch as the permanent fix.

If your data may have been exposed

Actively exploited vulnerabilities of this type frequently lead to full server compromise and subsequent data theft or ransomware deployment; known ransomware use has been reported for CVE-2024-4577. If you suspect exploitation, isolate the host, preserve volatile evidence, and begin incident-response procedures. As a quick personal check, you can run a free exposure scan of your email address against known breach data to see whether credentials or other information associated with your accounts have already appeared in public dumps.

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

Details

AffectedPHP Group · PHP
WeaknessCWE-78
Added to CISA KEVJun 12, 2024
Federal patch deadlineJul 3, 2024
Known ransomware useYes
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities