CVE-2024-4577: critical vulnerability in PHP
Argument Injection in PHP-CGI
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
Patch now. It under exploitation confirmed by CISA and has a working public exploit.
Official vendor statements in CSAF/VEX format: whether their product is affected, already fixed, or ruled out — and why. These are the vendor's assertions, not Vexday's judgment.
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
PHP-CGI on Windows can be tricked into accepting malicious command-line options through character encoding tricks, allowing attackers to expose source code or run arbitrary code on the server.
An argument injection vulnerability in PHP-CGI on Windows occurs when Apache passes user input through the CGI interface; if Windows code page settings enable 'Best-Fit' character mapping, specially crafted input can be reinterpreted as PHP options (e.g., -r, -d), bypassing normal request handling. Requires specific Windows code page configuration and vulnerable PHP versions; impact includes arbitrary code execution and information disclosure.
The full analysis of this CVE is available in Portuguese →
In the same product, most dangerous first.