Skip to main content
Mallory
← Back to News
actively-exploited-vulnerabilityinternet-facing-service-vulnerabilityremote-access-implantrapid-weaponization

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

Mass Exploitation of Windows PHP-CGI Flaw Delivers Ransomware, Backdoors and Cobalt Strike

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.

This is being exploited nowSee which actors are running it and whether you're in range.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

16 events · Jun 2024 – Jan 2025
  1. Reported Mar 17, 20252y ago

    Exploitation attempts alter firewall rules to block other malicious infrastructure

    Some attempts used PowerShell and netsh to block outbound connections to oldschool[.]best infrastructure and inbound connections from a Monero mining server. Bitdefender considered competition between cryptojacking groups the most likely explanation, but did not confirm that assessment.

    Technical Advisory: Mass Exploitation of CVE-2024-4577
  2. Reported Mar 17, 20252y ago

    Attackers install a malicious MSI from botnet-associated infrastructure

    Attackers used msiexec to install a malicious 5118.msi package from an IP address associated with botnet operations. Bitdefender assessed that this suggested attempted recruitment of compromised servers into a botnet.

    Technical Advisory: Mass Exploitation of CVE-2024-4577
  3. Reported Mar 17, 20252y ago

    Attackers deploy Quasar RAT through downloaded batch scripts

    Observed CVE-2024-4577 campaigns deployed Quasar RAT using antivirus.cmd batch scripts downloaded through PowerShell or certutil. The malware provided remote command execution, file transfer, keylogging, and screen capture capabilities.

    Technical Advisory: Mass Exploitation of CVE-2024-4577
  4. Reported Mar 17, 20252y ago

    Attackers deploy XMRig and disguised Nicehash mining software

    Bitdefender observed exploitation campaigns deploying XMRig, including use of a vulnerable WinRing0x64 driver to support elevated privileges and conceal mining activity. A smaller campaign deployed Nicehash software disguised as javawindows.exe.

    Technical Advisory: Mass Exploitation of CVE-2024-4577
  5. Reported Mar 17, 20252y ago

    Bitdefender observes a significant surge in exploitation attempts

    Bitdefender observed steadily increasing CVE-2024-4577 exploitation, including a significant surge during the month preceding its report. Detections were concentrated in Taiwan and Hong Kong, with additional activity in Brazil, Japan, and India.

    Technical Advisory: Mass Exploitation of CVE-2024-4577
  6. Jan 2025

    Threat actor begins targeting Japanese organizations with Cobalt Strike

    An unidentified actor began targeting organizations in Japan through CVE-2024-4577 exploitation. After gaining access, the actor used PowerShell to deploy Cobalt Strike reverse HTTP shellcode and TaoWu plugins for post-exploitation control and lateral movement.

    Hackers Weaponize CVE-2024-4577 to Deploy Cobalt Strike and Compromise Systems
  7. Reported Jun 12, 20242y ago

    Msupedge backdoor attack against a Taiwanese university is reported

    An August 20 update reported an attack involving the newly discovered Msupedge backdoor, which Symantec found at a university in Taiwan. Symantec assessed that initial access likely involved CVE-2024-4577 and revealed that the backdoor used dnscat2-based DNS tunneling for command-and-control.

    PHP RCE Attack | Outbreak Alert | FortiGuard Labs
  8. Reported Jun 12, 20242y ago

    FortiGuard identifies Gh0st RAT, RedTail, and XMRig campaigns

    A FortiGuard update identified additional campaigns exploiting CVE-2024-4577 to deploy Gh0st RAT and the RedTail and XMRig cryptocurrency miners.

    PHP RCE Attack | Outbreak Alert | FortiGuard Labs
  9. Jun 12, 20242y ago

    FortiGuard records exploitation attempts against over 40,000 IPS devices

    FortiGuard telemetry reported CVE-2024-4577 exploitation attempts targeting more than 40,000 unique IPS devices.

    PHP RCE Attack | Outbreak Alert | FortiGuard Labs
  10. Jun 10, 20242y ago

    Imperva reports TellYouThePass ransomware exploitation

    Imperva Threat Research reported attackers exploiting CVE-2024-4577 to distribute TellYouThePass ransomware. The campaign used the vulnerability to deliver web shells and deploy ransomware on targeted systems.

    PHP RCE Attack | Outbreak Alert | FortiGuard Labs
  11. Reported Jun 9, 20242y ago

    SANS honeypots detect initial CVE-2024-4577 probes

    SANS honeypots detected probes that injected PHP options and executed a harmless hash-calculation payload to test for vulnerable systems. One observed scanning source was 79.124.49.158.

    Attacker Probing for New PHP Vulnerablity CVE-2024-4577
  12. Jun 9, 20242y ago

    Censys identifies approximately 458,800 potentially vulnerable PHP instances

    As of June 9, 2024, Censys observed approximately 458,800 PHP server instances that were potentially vulnerable to CVE-2024-4577.

    PHP RCE Attack | Outbreak Alert | FortiGuard Labs
  13. Jun 7, 20242y ago

    watchTowr releases a CVE-2024-4577 proof of concept

    watchTowr researchers released a proof-of-concept script on GitHub and published technical analysis explaining exploitation of the PHP CGI vulnerability.

    PHP RCE Attack | Outbreak Alert | FortiGuard Labs
  14. Jun 7, 20242y ago

    SANS credits Orange Tsai with discovering CVE-2024-4577

    The SANS honeypot report credits Orange Tsai with discovering the vulnerability on June 7. The flaw exploits Windows character conversion to inject PHP command-line arguments.

    Attacker Probing for New PHP Vulnerablity CVE-2024-4577
  15. Jun 6, 20242y ago

    PHP releases patches for CVE-2024-4577

    PHP released fixes for CVE-2024-4577 on June 6, 2024. The patched releases include PHP 8.3.8, 8.2.20, and 8.1.29.

    PHP RCE Attack | Outbreak Alert | FortiGuard Labs
  16. Jun 2024

    Bitdefender first highlights CVE-2024-4577

    Bitdefender highlighted the PHP CGI argument-injection vulnerability affecting Windows systems, which can allow remote code execution.

    Technical Advisory: Mass Exploitation of CVE-2024-4577
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Threat actors

1 linked

Malware

1 linked

Affected products

1 linked
Php

Observables

21 linked

Indicator values are masked on this page. View all 21 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?Correlate live exploitation activity against the software you actually run, and see where you're exposed.
See Who's Exploiting This
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.