Skip to content
Threat Feed
critical threat exploited PoC

PHP CGI Argument Injection (CVE-2024-4577)

A critical argument injection vulnerability in PHP-CGI running on Windows can allow unauthenticated remote attackers to achieve remote code execution or disclose script source code via malicious character sequences.

CVE search metadata

CVE search record: CVE-2024-4577. Severity: critical. CVSS: 9.8. EPSS: 99.99%. KEV: yes. Product: PHP, XAMPP. Brief: PHP CGI Argument Injection (CVE-2024-4577). Brief link: https://feed.craftedsignal.io/briefs/2026-11-php-cgi-argument-injection-cve-2024-4577/

Triage facts

Revision 1
Applicability
PHP, XAMPP
Evidence
Confirmed activeHigh confidence
Severity
Critical
Sources
3 public sources
Freshness
Revision 1Nov 22, 18:41 UTC
Vulnerabilities
1 CVE

Overview

PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, and 8.3.* before 8.3.8 are affected by an argument injection vulnerability when running on Windows with Apache and PHP-CGI. The vulnerability stems from Windows "Best-Fit" behavior where certain characters in the command line are misinterpreted by the PHP-CGI module as options, allowing attackers to pass unintended arguments to the PHP binary.

Attack Chain

An attacker can exploit this by sending crafted requests to a vulnerable Windows server. The misinterpretation of characters (e.g., in specific code pages) allows for the injection of PHP options, enabling remote code execution (RCE) or the disclosure of sensitive script source code.

Impact

Successful exploitation allows unauthenticated attackers to execute arbitrary code on the target server, leading to full system compromise or information disclosure.

Recommendation

Administrators should review vendor guidance and update PHP installations to versions 8.1.29, 8.2.20, or 8.3.8 or later to address the vulnerable component usage in the specified Windows environments.