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 Jul 28, 2026
🔬 Proof of concept available. Patch available. Sources: github_pr, github.
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 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.

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