CVE-2024-4577: PHP-CGI Argument Injection RCE on Windows
If you run PHP on Windows behind Apache in CGI mode (including any default XAMPP install), treat it as compromised-until-proven-otherwise and patch or remove CGI today; everyone else can relax.
Must act: Operators of Windows servers running PHP through php-cgi.exe (Apache CGI mode, XAMPP's default /php-cgi/ alias, or php binaries in a web-reachable CGI directory), especially on Chinese or Japanese system locales.
Can relax: Linux and macOS PHP hosts, and Windows hosts using mod_php, FastCGI or PHP-FPM rather than PHP-CGI, are not affected by this bug.
- Inventory Windows hosts running PHP and check `php -v` and whether php-cgi.exe is reachable over HTTP
- Upgrade to a supported PHP branch (8.2 or later) at or above the fixed releases
- On XAMPP, comment out the `ScriptAlias /php-cgi/` line in httpd-xampp.conf if you do not need PHP-CGI