
CVE-2024-4577: millions of Windows PHP-CGI servers were one HTTP request away from RCE. Exceptional CVSS of 9.8. 😬 Windows in code pages like zh/ja does "Best-Fit" mapping on cmdline args. A soft hyphen (0xAD) becomes a real "-" before PHP-CGI ever sees its argv. A URL with 0xAD-prefixed bytes slipped past PHP's argument filter and reached php-cgi.exe as -d allow_url_include=1 -d auto_prepend_file=php://input. Inject any code via POST body. Patched in #PHP 8.3.8 / 8.2.20 / 8.1.29.
Post summary
The post describes a RCE vulnerability in Windows PHP‑CGI caused by soft‑hyphen character mapping, provides a CVSS score of 9.8, and notes that PHP versions 8.3.8, 8.2.20, and 8.1.29 contain the patch.
















