# CVE-2024-4577 — PHP

**CISA KEV** · **Ransomware**

> As of 2025-10-21, CVE-2024-4577 is a CRITICAL-severity vulnerability in PHP, CVSS v3.1 9.8, EPSS 99.9% (99.9th percentile). It is listed in the CISA Known Exploited Vulnerabilities catalog (added 2024-06-12), with a US federal remediation deadline of 2024-07-03, and CISA links it to known ransomware campaigns. Threadlinqs Intelligence links 1 tracked threat campaign to CVE-2024-4577, most recently “Evooo1Bot: Multi-Functional Mirai-Based Linux Botnet Exploiting 18 Known CVEs in Internet-Facing Devices”.

**Last updated:** 2025-10-21

## What is CVE-2024-4577?

In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, when using Apache and PHP-CGI on Windows, if the system is set up to use certain code pages, Windows may use "Best-Fit" behavior to replace characters in command line given to Win32 API functions. PHP CGI module may misinterpret those characters as PHP options, which may allow a malicious user to pass options to PHP binary being run, and thus reveal the source code of scripts, run arbitrary PHP code on the server, etc.

The record classifies CVE-2024-4577 under weakness class [CWE-78](https://intel.threadlinqs.com/cwe/CWE-78). Its CVSS v3 base vector states that the flaw is reachable remotely over the network, needs no prior authentication, needs no user interaction, and has high impact on confidentiality, integrity, availability. 1 affected-product entry is recorded, across 1 vendor, listed below. The identifier was first published 853 days ago.

## Severity and exploitation probability

- **CVSS v3.1 base score:** 9.8 — CRITICAL (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **EPSS (FIRST):** 99.9% probability of exploitation in the next 30 days, higher than 99.9% of all scored CVEs
- **CISA KEV:** Listed since 2024-06-12, federal remediation deadline 2024-07-03 — used in known ransomware campaigns
- **Threadlinqs priority:** 10/10 — CISA lists it as used in ransomware, which Threadlinqs scores at the maximum
- **Published:** 2024-06-09, last modified 2025-10-21

## Is CVE-2024-4577 being exploited?

CISA added CVE-2024-4577 to the Known Exploited Vulnerabilities catalog on 2024-06-12, which means the agency holds evidence of exploitation in the wild; US federal civilian agencies had to remediate it by 2024-07-03 under BOD 22-01. CISA flags the vulnerability as one used in known ransomware campaigns. Weaponised exploit code for CVE-2024-4577 is publicly available. 11 public proof-of-concept repositories are tracked for this identifier. A ProjectDiscovery Nuclei detection template exists (`http/cves/2024/CVE-2024-4577.yaml`). It currently carries a trending score of 50 in the Threadlinqs vulnerability feed.

- [watchtowrlabs/CVE-2024-4577](https://github.com/watchtowrlabs/CVE-2024-4577) (github)
- [xcanwin/CVE-2024-4577-PHP-RCE](https://github.com/xcanwin/CVE-2024-4577-PHP-RCE) (github)
- [TAM-K592/CVE-2024-4577](https://github.com/TAM-K592/CVE-2024-4577) (github)
- [Night-have-dreams/php-cgi-Injector](https://github.com/Night-have-dreams/php-cgi-Injector) (github)
- [11whoami99/CVE-2024-4577](https://github.com/11whoami99/CVE-2024-4577) (github)
- [Chocapikk/CVE-2024-4577](https://github.com/Chocapikk/CVE-2024-4577) (github)
- [ZephrFish/CVE-2024-4577-PHP-RCE](https://github.com/ZephrFish/CVE-2024-4577-PHP-RCE) (github)
- [gh-ost00/CVE-2024-4577-RCE](https://github.com/gh-ost00/CVE-2024-4577-RCE) (github)

## Affected products and versions

- [PHP Group](https://intel.threadlinqs.com/vendors/php-group): PHP

## How to fix CVE-2024-4577

The record marks a vendor fix as available for CVE-2024-4577. Patch reference: [https://github.com/rapid7/metasploit-framework/pull/19247](https://github.com/rapid7/metasploit-framework/pull/19247). Because CVE-2024-4577 is KEV-listed, US federal civilian agencies were required to apply the vendor fix, or stop using the product, by 2024-07-03. Apply the vendor fix referenced above to every affected product listed in this record, then confirm the running version against the vendor advisory.

## Threat activity tracking CVE-2024-4577

1 tracked threat in the Threadlinqs corpus references CVE-2024-4577, either in the campaign’s CVE list or as an indicator on the campaign record.

- [Evooo1Bot: Multi-Functional Mirai-Based Linux Botnet Exploiting 18 Known CVEs in Internet-Facing Devices](https://intel.threadlinqs.com/threat/TL-2026-3062) — HIGH · 2026-10-09

## Sources

Enriched from CVE.org, NVD, FIRST EPSS, CISA KEV, GitHub Security Advisories, public proof-of-concept repositories, ProjectDiscovery Nuclei. Last verified by Threadlinqs on 2026-10-10. This product uses the NVD API but is not endorsed or certified by the NVD.

**Other references**

- [github.com](https://github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jv)
- [blog.orange.tw](https://blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.html)
- [devco.re](https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/)
- [arstechnica.com](https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/)
- [imperva.com](https://www.imperva.com/blog/imperva-protects-against-critical-php-vulnerability-cve-2024-4577/)

_Showing 5 of 19 recorded references._

Canonical: https://intel.threadlinqs.com/cve/CVE-2024-4577
Full detection coverage and IOCs for threats exploiting CVE-2024-4577 via the Threadlinqs MCP server (Purple tier): https://intel.threadlinqs.com/mcp
