Mass Exploitation of Windows PHP-CGI Flaw Delivers Ransomware, Backdoors and Cobalt Strike
Active Exploitation · 5 sources · Updated 1mo ago · First seen Jun 12, 2024

Attackers have widely exploited CVE-2024-4577, an argument-injection vulnerability in PHP running in CGI mode on Windows, to execute code remotely and deploy ransomware, backdoors and cryptocurrency miners. The flaw abuses Windows best-fit character mapping to turn a soft hyphen into a command-line option delimiter, bypassing protections associated with CVE-2012-1823. SANS honeypots detected early vulnerability probes shortly after PHP released patches on June 6, 2024. Censys identified approximately 458,800 potentially vulnerable PHP instances on June 9, while FortiGuard recorded attempts targeting more than 40,000 unique IPS devices by June 12; these figures indicate exposure and attack activity, not confirmed compromises. Reported payloads include TellYouThePass ransomware, Gh0st RAT, RedTail and XMRig.
Subsequent campaigns demonstrate sustained abuse across Asia. Bitdefender reported increasing exploitation, concentrated in Taiwan and Hong Kong, involving reconnaissance, Quasar RAT, malicious installers and cryptomining; some attempts altered firewall rules to block competing malicious infrastructure. Symantec linked a Taiwanese university intrusion to likely exploitation of the flaw, deploying the previously unseen Msupedge backdoor with DNS-tunneled command-and-control based on dnscat2, but did not establish attribution or motive. A separate campaign targeting Japanese organizations since January 2025 used PowerShell to deploy Cobalt Strike reverse-HTTP shellcode, followed by TaoWu plugins for system control and lateral movement. Organizations should upgrade affected PHP installations to current supported releases, evaluate alternatives to CGI, restrict unnecessary administrative-tool access and apply available IPS protections. Defenders should also investigate unexpected PowerShell activity, DNS tunneling, firewall changes and remote-access payloads on exposed Windows PHP servers.


