CVE-2024-4577

CRITICALNVD 9.89.8
EchelonGraph scoreHIGH confidence

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.

Triggered by: CISA KEV (actively exploited)
Sources: cisa_kev, epss, ghsa, nvd
Trending — 5 sources updated this weekExploited in the wild
9.8EG
EchelonGraph verdictPatch nowTreat as an emergency — this is being exploited.
  • Actively exploited in the wild (CISA-KEV)
CISA-KEV: ExploitedEPSS PROB: 100%CVSS: 9.8Exploit: cisa kev · ssvc active · kev ransomware · Metasploit · epss top5pct · epss high · public exploitExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

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.

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 computed
Severity98% × 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, 2026
🔬 Proof of concept available. Patch available. Sources: github, github_pr.
generic

GitHub - xcanwin/CVE-2024-4577-PHP-RCE: [漏洞复现] 全球首款利用PHP默认环境(XAMPP)的CVE-2024-4577 PHP-CGI RCE 漏洞 EXP。 · GitHub

https://github.com/xcanwin/CVE-2024-4577-PHP-RCE
generic🟡 PoC Available

GitHub - watchtowrlabs/CVE-2024-4577: PHP CGI Argument Injection (CVE-2024-4577) Remote Code Execution PoC · GitHub

https://github.com/watchtowrlabs/CVE-2024-4577
github_pr

Add 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/19247
github Patch Available🟡 PoC Available

PHP 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-25jv
generic

GitHub - 11whoami99/CVE-2024-4577: POC & $BASH script for CVE-2024-4577 · GitHub

https://github.com/11whoami99/CVE-2024-4577
generic

Security 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/
generic🟡 PoC Available

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/
generic

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/1

Weakness 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.

  1. 2026-09-22 14:59 UTCVendor advisory
  2. 2026-09-22 14:58 UTCGHSA enrichment
  3. 2026-09-22 10:51 UTCVendor advisory
  4. 2026-09-22 10:51 UTCGHSA enrichment
  5. 2026-09-22 06:44 UTCVendor advisory
  6. 2026-09-22 06:44 UTCGHSA enrichment
  7. 2026-09-22 02:37 UTCVendor advisory
  8. 2026-09-22 02:37 UTCGHSA enrichment
  9. 2026-09-21 22:30 UTCVendor advisory
  10. 2026-09-21 22:30 UTCGHSA enrichment
  11. 2026-09-21 19:09 UTCCISA KEV update
  12. 2026-09-21 18:23 UTCVendor advisory
  13. 2026-09-21 18:23 UTCGHSA enrichment
  14. 2026-09-21 14:16 UTCVendor advisory
  15. 2026-09-21 14:16 UTCGHSA enrichment
  16. 2026-09-21 10:09 UTCVendor advisory
  17. 2026-09-21 10:09 UTCGHSA enrichment
  18. 2026-09-21 06:02 UTCVendor advisory
  19. 2026-09-21 06:02 UTCGHSA enrichment
  20. 2026-09-21 01:55 UTCVendor advisory
  21. 2026-09-21 01:55 UTCGHSA enrichment
  22. 2026-09-20 21:48 UTCEG score recompute
  23. 2026-09-20 21:48 UTCVendor advisory
  24. 2026-09-20 21:47 UTCGHSA enrichment
  25. 2026-09-20 20:14 UTCEPSS rescore
Show 75 more
  1. 2026-09-20 20:14 UTCEPSS rescore
  2. 2026-09-20 17:41 UTCVendor advisory
  3. 2026-09-20 17:41 UTCGHSA enrichment
  4. 2026-09-20 13:34 UTCVendor advisory
  5. 2026-09-20 13:34 UTCGHSA enrichment
  6. 2026-09-20 09:28 UTCVendor advisory
  7. 2026-09-20 09:28 UTCGHSA enrichment
  8. 2026-09-20 05:21 UTCVendor advisory
  9. 2026-09-20 05:21 UTCGHSA enrichment
  10. 2026-09-20 01:14 UTCVendor advisory
  11. 2026-09-20 01:14 UTCGHSA enrichment
  12. 2026-09-19 21:07 UTCVendor advisory
  13. 2026-09-19 21:07 UTCGHSA enrichment
  14. 2026-09-19 17:00 UTCVendor advisory
  15. 2026-09-19 17:00 UTCGHSA enrichment
  16. 2026-09-19 12:53 UTCVendor advisory
  17. 2026-09-19 12:53 UTCGHSA enrichment
  18. 2026-09-19 08:46 UTCVendor advisory
  19. 2026-09-19 08:46 UTCGHSA enrichment
  20. 2026-09-19 04:39 UTCVendor advisory
  21. 2026-09-19 04:39 UTCGHSA enrichment
  22. 2026-09-19 00:32 UTCVendor advisory
  23. 2026-09-19 00:32 UTCGHSA enrichment
  24. 2026-09-18 20:25 UTCEG score recompute
  25. 2026-09-18 20:25 UTCVendor advisory
  26. 2026-09-18 20:25 UTCGHSA enrichment
  27. 2026-09-18 19:26 UTCEPSS rescore
  28. 2026-09-18 19:20 UTCCISA KEV update
  29. 2026-09-18 16:17 UTCVendor advisory
  30. 2026-09-18 16:17 UTCGHSA enrichment
  31. 2026-09-18 14:15 UTCCISA KEV update
  32. 2026-09-18 12:10 UTCVendor advisory
  33. 2026-09-18 12:10 UTCGHSA enrichment
  34. 2026-09-18 08:04 UTCVendor advisory
  35. 2026-09-18 08:04 UTCGHSA enrichment
  36. 2026-09-18 03:57 UTCVendor advisory
  37. 2026-09-18 03:57 UTCGHSA enrichment
  38. 2026-09-17 23:50 UTCVendor advisory
  39. 2026-09-17 23:50 UTCGHSA enrichment
  40. 2026-09-17 19:42 UTCVendor advisory
  41. 2026-09-17 19:42 UTCGHSA enrichment
  42. 2026-09-17 15:35 UTCVendor advisory
  43. 2026-09-17 15:35 UTCGHSA enrichment
  44. 2026-09-17 11:28 UTCVendor advisory
  45. 2026-09-17 11:28 UTCGHSA enrichment
  46. 2026-09-17 07:21 UTCVendor advisory
  47. 2026-09-17 07:20 UTCGHSA enrichment
  48. 2026-09-17 03:12 UTCVendor advisory
  49. 2026-09-17 03:12 UTCGHSA enrichment
  50. 2026-09-16 23:04 UTCVendor advisory
  51. 2026-09-16 23:04 UTCGHSA enrichment
  52. 2026-09-16 18:57 UTCVendor advisory
  53. 2026-09-16 18:56 UTCGHSA enrichment
  54. 2026-09-16 14:50 UTCVendor advisory
  55. 2026-09-16 14:50 UTCGHSA enrichment
  56. 2026-09-16 14:10 UTCCISA KEV update
  57. 2026-09-16 10:43 UTCVendor advisory
  58. 2026-09-16 10:43 UTCGHSA enrichment
  59. 2026-09-16 06:36 UTCVendor advisory
  60. 2026-09-16 06:36 UTCGHSA enrichment
  61. 2026-09-16 02:30 UTCVendor advisory
  62. 2026-09-16 02:30 UTCGHSA enrichment
  63. 2026-09-15 22:23 UTCVendor advisory
  64. 2026-09-15 22:22 UTCGHSA enrichment
  65. 2026-09-15 18:15 UTCVendor advisory
  66. 2026-09-15 18:15 UTCGHSA enrichment
  67. 2026-09-15 14:08 UTCVendor advisory
  68. 2026-09-15 14:08 UTCGHSA enrichment
  69. 2026-09-15 10:01 UTCVendor advisory
  70. 2026-09-15 10:01 UTCGHSA enrichment
  71. 2026-09-15 05:54 UTCVendor advisory
  72. 2026-09-15 05:54 UTCGHSA enrichment
  73. 2026-09-15 01:47 UTCVendor advisory
  74. 2026-09-15 01:47 UTCGHSA enrichment
  75. 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-52331
    First seen Jun 15, 2025

    PHP CGI Module 8.3.4 - Remote Code Execution (RCE)

    Open source ↗
  • GitHub PoCNight-have-dreams/php-cgi-Injector
    First seen Mar 15, 2025

    一個測試CVE-2024-4577和CVE-2024-8926的安全滲透工具

    Open source ↗
  • GitHub PoCBTtea/CVE-2024-4577-RCE-PoC
    First seen Nov 6, 2024

    CVE-2024-4577 RCE PoC

    Open source ↗
  • GitHub PoCgh-ost00/CVE-2024-4577-RCE
    First seen Aug 20, 2024

    PHP CGI Argument Injection (CVE-2024-4577) RCE

    Open source ↗
  • GitHub PoCgotr00t0day/CVE-2024-4577
    First seen Jun 15, 2024

    Argument injection vulnerability in PHP

    Open source ↗
  • GitHub PoCChocapikk/CVE-2024-4577
    First seen Jun 9, 2024

    PHP CGI Argument Injection vulnerability

    Open source ↗
  • GitHub PoCxcanwin/CVE-2024-4577-PHP-RCE
    First seen Jun 8, 2024

    [漏洞复现] 全球首款利用PHP默认环境(XAMPP)的CVE-2024-4577 PHP-CGI RCE 漏洞 EXP。

    Open source ↗
  • GitHub PoCZephrFish/CVE-2024-4577-PHP-RCE
    First 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-4577
    First seen Jun 7, 2024

    PHP CGI Argument Injection (CVE-2024-4577) Remote Code Execution PoC

    Open source ↗
  • GitHub PoCTAM-K592/CVE-2024-4577
    First 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 ↗

Frequently asked(6)

What is CVE-2024-4577?
CVE-2024-4577 is a critical vulnerability published on June 9, 2024. 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…
When was CVE-2024-4577 disclosed?
CVE-2024-4577 was first published in the National Vulnerability Database on June 9, 2024, with the most recent update on November 3, 2025. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2024-4577 actively exploited?
Yes. CISA added CVE-2024-4577 to the Known Exploited Vulnerabilities catalog on June 12, 2024, affecting PHP Group PHP. KEV listing indicates confirmed exploitation in the wild; this CVE warrants immediate patching attention.
What is the CVSS score of CVE-2024-4577?
CVE-2024-4577 has a CVSS v3 base score of 9.8 (NVD).
Which products are affected by CVE-2024-4577?
CVE-2024-4577 affects PHP Group PHP. The full affected-products list, including version ranges and fixed versions, is shown in the Affected Packages section of this page.
How do I remediate CVE-2024-4577?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2024-4577, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

Explore the affected products and dependency analysis for CVE-2024-4577

Explore →

Is Your Infrastructure Affected by CVE-2024-4577?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.