PHP
WebUsage: unknown. No public source measures this product yet.
Version split: unknown. No public source for this product.
Argument Injection in PHP-CGI
Exploited in the wild. In CISA KEV since 2024‑06‑12. Fixed versions are out.
Find your product and version, then upgrade to the build on the right.
Versions as the sources state them. Full version matrix after sign-in
Advisory coverage
Exploitation reported in the wild
Added to CISA KEV catalog
Sourced from public security reporting — each date is when it was published, not when it happened. 2 further articles named this CVE in wider roundups without reporting it as a distinct event.
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.
CVE-2024-4577 is a Windows-only PHP-CGI bug that lets an attacker take over a PHP web server or view hidden files with just network requests, and small businesses should treat it as urgent if you run PHP-CGI on Windows with Apache.
Unauthenticated remote attackers can exploit Windows text conversion (“Best-Fit” character mapping) when using Apache with PHP-CGI on Windows under specific non-UTF-8 locale/code page settings, causing PHP-CGI to misinterpret crafted characters as PHP options and enabling code execution and/or disclosure of server scripts; this is listed in CISA KEV and used in ransomware campaigns.
Where each signal puts this CVE on the scale from published to confirmed exploited.
Listed as exploited in the wild since 2024-06-12.
US federal agencies must remediate by 2024-07-03.
Known use in ransomware campaigns.
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
12 sources with a proof of concept or module.
Exploit links, PoCs and Metasploit modules after sign-in100% chance of exploitation activity in the next 30 days, which ranks it in the 99th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Sustained, driven by wide press coverage.
The patch came 123 days before any public exploit.
How widely the affected products are used. This is not a count of vulnerable hosts.
Estimate Public sources, each figure dated. How much of it is already patched is not known.
Usage: unknown. No public source measures this product yet.
Version split: unknown. No public source for this product.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored 9.8 by NVD.
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
And 24 more references. See all after sign-in
My Stack ranks new CVEs for your products by real-world exploitation, so the next exploited one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for PHP, not every advisory. This one: actively exploited.