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 Sep 17, 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 91× in last 7d / 356× 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 1,320 total refreshes for this CVE.
- 2026-09-22 14:59 UTCVendor advisory
- 2026-09-22 14:58 UTCGHSA enrichment
- 2026-09-22 10:51 UTCVendor advisory
- 2026-09-22 10:51 UTCGHSA enrichment
- 2026-09-22 06:44 UTCVendor advisory
- 2026-09-22 06:44 UTCGHSA enrichment
- 2026-09-22 02:37 UTCVendor advisory
- 2026-09-22 02:37 UTCGHSA enrichment
- 2026-09-21 22:30 UTCVendor advisory
- 2026-09-21 22:30 UTCGHSA enrichment
- 2026-09-21 19:09 UTCCISA KEV update
- 2026-09-21 18:23 UTCVendor advisory
- 2026-09-21 18:23 UTCGHSA enrichment
- 2026-09-21 14:16 UTCVendor advisory
- 2026-09-21 14:16 UTCGHSA enrichment
- 2026-09-21 10:09 UTCVendor advisory
- 2026-09-21 10:09 UTCGHSA enrichment
- 2026-09-21 06:02 UTCVendor advisory
- 2026-09-21 06:02 UTCGHSA enrichment
- 2026-09-21 01:55 UTCVendor advisory
- 2026-09-21 01:55 UTCGHSA enrichment
- 2026-09-20 21:48 UTCEG score recompute
- 2026-09-20 21:48 UTCVendor advisory
- 2026-09-20 21:47 UTCGHSA enrichment
- 2026-09-20 20:14 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-09-20 20:14 UTCEPSS rescore
- 2026-09-20 17:41 UTCVendor advisory
- 2026-09-20 17:41 UTCGHSA enrichment
- 2026-09-20 13:34 UTCVendor advisory
- 2026-09-20 13:34 UTCGHSA enrichment
- 2026-09-20 09:28 UTCVendor advisory
- 2026-09-20 09:28 UTCGHSA enrichment
- 2026-09-20 05:21 UTCVendor advisory
- 2026-09-20 05:21 UTCGHSA enrichment
- 2026-09-20 01:14 UTCVendor advisory
- 2026-09-20 01:14 UTCGHSA enrichment
- 2026-09-19 21:07 UTCVendor advisory
- 2026-09-19 21:07 UTCGHSA enrichment
- 2026-09-19 17:00 UTCVendor advisory
- 2026-09-19 17:00 UTCGHSA enrichment
- 2026-09-19 12:53 UTCVendor advisory
- 2026-09-19 12:53 UTCGHSA enrichment
- 2026-09-19 08:46 UTCVendor advisory
- 2026-09-19 08:46 UTCGHSA enrichment
- 2026-09-19 04:39 UTCVendor advisory
- 2026-09-19 04:39 UTCGHSA enrichment
- 2026-09-19 00:32 UTCVendor advisory
- 2026-09-19 00:32 UTCGHSA enrichment
- 2026-09-18 20:25 UTCEG score recompute
- 2026-09-18 20:25 UTCVendor advisory
- 2026-09-18 20:25 UTCGHSA enrichment
- 2026-09-18 19:26 UTCEPSS rescore
- 2026-09-18 19:20 UTCCISA KEV update
- 2026-09-18 16:17 UTCVendor advisory
- 2026-09-18 16:17 UTCGHSA enrichment
- 2026-09-18 14:15 UTCCISA KEV update
- 2026-09-18 12:10 UTCVendor advisory
- 2026-09-18 12:10 UTCGHSA enrichment
- 2026-09-18 08:04 UTCVendor advisory
- 2026-09-18 08:04 UTCGHSA enrichment
- 2026-09-18 03:57 UTCVendor advisory
- 2026-09-18 03:57 UTCGHSA enrichment
- 2026-09-17 23:50 UTCVendor advisory
- 2026-09-17 23:50 UTCGHSA enrichment
- 2026-09-17 19:42 UTCVendor advisory
- 2026-09-17 19:42 UTCGHSA enrichment
- 2026-09-17 15:35 UTCVendor advisory
- 2026-09-17 15:35 UTCGHSA enrichment
- 2026-09-17 11:28 UTCVendor advisory
- 2026-09-17 11:28 UTCGHSA enrichment
- 2026-09-17 07:21 UTCVendor advisory
- 2026-09-17 07:20 UTCGHSA enrichment
- 2026-09-17 03:12 UTCVendor advisory
- 2026-09-17 03:12 UTCGHSA enrichment
- 2026-09-16 23:04 UTCVendor advisory
- 2026-09-16 23:04 UTCGHSA enrichment
- 2026-09-16 18:57 UTCVendor advisory
- 2026-09-16 18:56 UTCGHSA enrichment
- 2026-09-16 14:50 UTCVendor advisory
- 2026-09-16 14:50 UTCGHSA enrichment
- 2026-09-16 14:10 UTCCISA KEV update
- 2026-09-16 10:43 UTCVendor advisory
- 2026-09-16 10:43 UTCGHSA enrichment
- 2026-09-16 06:36 UTCVendor advisory
- 2026-09-16 06:36 UTCGHSA enrichment
- 2026-09-16 02:30 UTCVendor advisory
- 2026-09-16 02:30 UTCGHSA enrichment
- 2026-09-15 22:23 UTCVendor advisory
- 2026-09-15 22:22 UTCGHSA enrichment
- 2026-09-15 18:15 UTCVendor advisory
- 2026-09-15 18:15 UTCGHSA enrichment
- 2026-09-15 14:08 UTCVendor advisory
- 2026-09-15 14:08 UTCGHSA enrichment
- 2026-09-15 10:01 UTCVendor advisory
- 2026-09-15 10:01 UTCGHSA enrichment
- 2026-09-15 05:54 UTCVendor advisory
- 2026-09-15 05:54 UTCGHSA enrichment
- 2026-09-15 01:47 UTCVendor advisory
- 2026-09-15 01:47 UTCGHSA enrichment
- 2026-09-14 21:40 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 CWE)
Same CWE
10 shownCWE-78
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.