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
Score elevated to 9.8 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2024-06-12), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 9.8 retained for reference. Confidence: HIGH.
- Actively exploited in the wild (CISA-KEV)
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 9.8
- EG Score
- 9.8(high)
- EG Risk
- 99(Act)EG Risk 99/100SSVC: Act
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation100% × 40%Automatability100% × 15%Action: Fix now — active exploitation, automatable, high impact. - EPSS PROB
- 100%
- EPSS %ILE
- 100%
- KEV
- ⚠ Exploited
Published
June 9, 2024
Last Modified
November 3, 2025
Advisory Details (9)
Auto-updated Jul 28, 2026GitHub - xcanwin/CVE-2024-4577-PHP-RCE: [漏洞复现] 全球首款利用PHP默认环境(XAMPP)的CVE-2024-4577 PHP-CGI RCE 漏洞 EXP。 · GitHub
https://github.com/xcanwin/CVE-2024-4577-PHP-RCEGitHub - watchtowrlabs/CVE-2024-4577: PHP CGI Argument Injection (CVE-2024-4577) Remote Code Execution PoC · GitHub
https://github.com/watchtowrlabs/CVE-2024-4577Add exploit module for the new PHP CGI Argument Injection vuln (CVE-2024-4577)
Fix merged in rapid7/metasploit-framework PR #19247 on 2024-06-17 — awaiting tagged release
https://github.com/rapid7/metasploit-framework/pull/19247PHP RCE: A Bypass of CVE-2012-1823, Argument Injection in PHP-CGI · Advisory · php/php-src · GitHub
https://github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jvGitHub - 11whoami99/CVE-2024-4577: POC & $BASH script for CVE-2024-4577 · GitHub
https://github.com/11whoami99/CVE-2024-4577Security Alert: CVE-2024-4577 - PHP CGI Argument Injection Vulnerability | DEVCORE
https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/Nasty bug with very simple exploit hits PHP just in time for the weekend - Ars Technica
https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/oss-security - PHP security releases 8.3.8, 8.2.20, and 8.1.29
http://www.openwall.com/lists/oss-security/2024/06/07/1Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(1)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 53× in last 7d / 329× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 661 total refreshes for this CVE.
- 2026-07-28 03:25 UTCVendor advisory
- 2026-07-28 03:25 UTCGHSA enrichment
- 2026-07-27 23:19 UTCVendor advisory
- 2026-07-27 23:18 UTCGHSA enrichment
- 2026-07-27 19:24 UTCCISA KEV update
- 2026-07-27 19:11 UTCVendor advisory
- 2026-07-27 19:10 UTCGHSA enrichment
- 2026-07-27 17:17 UTCCISA KEV update
- 2026-07-27 15:04 UTCVendor advisory
- 2026-07-27 15:03 UTCGHSA enrichment
- 2026-07-27 10:56 UTCVendor advisory
- 2026-07-27 10:55 UTCGHSA enrichment
- 2026-07-27 06:49 UTCVendor advisory
- 2026-07-27 06:48 UTCGHSA enrichment
- 2026-07-27 02:41 UTCVendor advisory
- 2026-07-27 02:41 UTCGHSA enrichment
- 2026-07-26 22:34 UTCVendor advisory
- 2026-07-26 22:34 UTCGHSA enrichment
- 2026-07-26 18:27 UTCVendor advisory
- 2026-07-26 18:26 UTCGHSA enrichment
- 2026-07-26 14:19 UTCEG score recompute
- 2026-07-26 14:19 UTCVendor advisory
- 2026-07-26 14:19 UTCGHSA enrichment
- 2026-07-26 10:12 UTCVendor advisory
- 2026-07-26 10:11 UTCGHSA enrichment
Show 75 moreShow fewer
- 2026-07-26 06:02 UTCVendor advisory
- 2026-07-26 06:02 UTCGHSA enrichment
- 2026-07-26 01:53 UTCEG score recompute
- 2026-07-26 01:53 UTCVendor advisory
- 2026-07-26 01:53 UTCGHSA enrichment
- 2026-07-24 14:16 UTCEPSS rescore
- 2026-07-23 02:40 UTCEG score recompute
- 2026-07-22 20:32 UTCGHSA enrichment
- 2026-07-22 19:40 UTCCISA KEV update
- 2026-07-22 16:24 UTCVendor advisory
- 2026-07-22 16:24 UTCGHSA enrichment
- 2026-07-22 12:16 UTCVendor advisory
- 2026-07-22 12:16 UTCGHSA enrichment
- 2026-07-22 08:10 UTCVendor advisory
- 2026-07-22 08:10 UTCGHSA enrichment
- 2026-07-22 04:03 UTCVendor advisory
- 2026-07-22 04:03 UTCGHSA enrichment
- 2026-07-21 23:55 UTCVendor advisory
- 2026-07-21 23:54 UTCGHSA enrichment
- 2026-07-21 19:47 UTCVendor advisory
- 2026-07-21 19:47 UTCGHSA enrichment
- 2026-07-21 15:40 UTCVendor advisory
- 2026-07-21 15:40 UTCGHSA enrichment
- 2026-07-21 14:37 UTCCISA KEV update
- 2026-07-21 11:33 UTCVendor advisory
- 2026-07-21 11:33 UTCGHSA enrichment
- 2026-07-21 07:23 UTCVendor advisory
- 2026-07-21 07:23 UTCGHSA enrichment
- 2026-07-21 03:16 UTCVendor advisory
- 2026-07-21 03:16 UTCGHSA enrichment
- 2026-07-20 23:09 UTCVendor advisory
- 2026-07-20 23:08 UTCGHSA enrichment
- 2026-07-20 19:02 UTCVendor advisory
- 2026-07-20 19:01 UTCGHSA enrichment
- 2026-07-20 14:53 UTCGHSA enrichment
- 2026-07-20 10:46 UTCGHSA enrichment
- 2026-07-20 06:40 UTCVendor advisory
- 2026-07-20 06:40 UTCGHSA enrichment
- 2026-07-20 02:31 UTCVendor advisory
- 2026-07-20 02:31 UTCGHSA enrichment
- 2026-07-19 22:24 UTCVendor advisory
- 2026-07-19 22:23 UTCGHSA enrichment
- 2026-07-19 18:16 UTCVendor advisory
- 2026-07-19 18:16 UTCGHSA enrichment
- 2026-07-19 14:09 UTCVendor advisory
- 2026-07-19 14:09 UTCGHSA enrichment
- 2026-07-19 10:03 UTCVendor advisory
- 2026-07-19 10:03 UTCGHSA enrichment
- 2026-07-19 05:56 UTCVendor advisory
- 2026-07-19 05:56 UTCGHSA enrichment
- 2026-07-19 01:49 UTCGHSA enrichment
- 2026-07-18 21:42 UTCVendor advisory
- 2026-07-18 21:42 UTCGHSA enrichment
- 2026-07-18 17:36 UTCVendor advisory
- 2026-07-18 17:35 UTCGHSA enrichment
- 2026-07-18 13:29 UTCVendor advisory
- 2026-07-18 13:28 UTCGHSA enrichment
- 2026-07-18 09:22 UTCVendor advisory
- 2026-07-18 09:22 UTCGHSA enrichment
- 2026-07-18 05:15 UTCVendor advisory
- 2026-07-18 05:15 UTCGHSA enrichment
- 2026-07-18 01:08 UTCVendor advisory
- 2026-07-18 01:08 UTCGHSA enrichment
- 2026-07-17 21:01 UTCVendor advisory
- 2026-07-17 21:01 UTCGHSA enrichment
- 2026-07-17 16:54 UTCVendor advisory
- 2026-07-17 16:54 UTCGHSA enrichment
- 2026-07-17 12:47 UTCVendor advisory
- 2026-07-17 12:47 UTCGHSA enrichment
- 2026-07-17 08:40 UTCEG score recompute
- 2026-07-17 08:40 UTCVendor advisory
- 2026-07-17 08:40 UTCGHSA enrichment
- 2026-07-17 04:33 UTCVendor advisory
- 2026-07-17 04:33 UTCGHSA enrichment
- 2026-07-17 00:26 UTCVendor advisory
Publicly available exploits
(10 references)Working exploit code is in the public domain (9 GitHub PoCs) (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-52331First seen Jun 15, 2025
PHP CGI Module 8.3.4 - Remote Code Execution (RCE)
Open source ↗ - GitHub PoCNight-have-dreams/php-cgi-InjectorFirst seen Mar 15, 2025
一個測試CVE-2024-4577和CVE-2024-8926的安全滲透工具
Open source ↗ - GitHub PoCBTtea/CVE-2024-4577-RCE-PoCFirst seen Nov 6, 2024
CVE-2024-4577 RCE PoC
Open source ↗ - GitHub PoCgh-ost00/CVE-2024-4577-RCEFirst seen Aug 20, 2024
PHP CGI Argument Injection (CVE-2024-4577) RCE
Open source ↗ - GitHub PoCgotr00t0day/CVE-2024-4577First seen Jun 15, 2024
Argument injection vulnerability in PHP
Open source ↗ - GitHub PoCChocapikk/CVE-2024-4577First seen Jun 9, 2024
PHP CGI Argument Injection vulnerability
Open source ↗ - GitHub PoCxcanwin/CVE-2024-4577-PHP-RCEFirst seen Jun 8, 2024
[漏洞复现] 全球首款利用PHP默认环境(XAMPP)的CVE-2024-4577 PHP-CGI RCE 漏洞 EXP。
Open source ↗ - GitHub PoCZephrFish/CVE-2024-4577-PHP-RCEFirst seen Jun 8, 2024
PHP RCE PoC for CVE-2024-4577 written in bash, go, python and a nuclei template
Open source ↗ - GitHub PoCwatchtowrlabs/CVE-2024-4577First seen Jun 7, 2024
PHP CGI Argument Injection (CVE-2024-4577) Remote Code Execution PoC
Open source ↗ - GitHub PoCTAM-K592/CVE-2024-4577First seen Jun 7, 2024
CVE-2024-4577 is a critical vulnerability in PHP affecting CGI configurations, allowing attackers to execute arbitrary commands via crafted URL parameters.
Open source ↗
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc
Same CWE
10 shownCWE-78
- CVE-2009-20011EG 10.0CRITICAL
- CVE-2011-10017EG 10.0CRITICAL
- CVE-2012-1166EG 10.0EPSS p91HIGH
- CVE-2012-2976EG 10.0EPSS p92HIGH
- CVE-2012-2953EG 10.0EPSS p99HIGH
- CVE-2011-4502EG 10.0EPSS p92HIGH
- CVE-2011-2148EG 10.0EPSS p92HIGH
- CVE-2011-0382EG 10.0EPSS p90HIGH
- CVE-2011-0381EG 10.0EPSS p92HIGH
- CVE-2011-0372EG 10.0HIGH
Frequently asked(6)
What is CVE-2024-4577?
When was CVE-2024-4577 disclosed?
Is CVE-2024-4577 actively exploited?
What is the CVSS score of CVE-2024-4577?
Which products are affected by CVE-2024-4577?
How do I remediate CVE-2024-4577?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2024-4577
Is Your Infrastructure Affected by CVE-2024-4577?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.