PHP-CGI Argument Injection Flaw CVE-2024-4577 Exploited to Deploy TellYouThePass
Active Exploitation · 7 sources · Updated 3mo ago · First seen Dec 18, 2024

A critical remote code execution vulnerability in PHP on Windows, tracked as CVE-2024-4577, allows argument injection in PHP-CGI through Windows Best-Fit character encoding conversion. The flaw affects supported and unsupported PHP 5.x+ versions and is especially dangerous in CGI deployments where php-cgi.exe or php.exe is exposed to the web, including common default XAMPP-style configurations. Researchers reported that specially crafted HTTP requests can bypass prior protections and achieve remote code execution without authentication.
Security updates were released in PHP 8.3.8, 8.2.20, and 8.1.29, but exploitation began rapidly after disclosure. Multiple reports said attackers were using crafted POST requests to launch mshta.exe, retrieve a malicious HTA payload, and execute TellYouThePass ransomware via in-memory VBScript loading. Defenders were urged to patch immediately and, where patching was not yet possible, restrict or disable PHP-CGI exposure and apply web-server filtering and configuration mitigations to block exploit requests.


