Vulnerability report

Exploited in the wild Confirmed confidence In CISA KEV

CVE-2024-4577

Argument Injection in PHP-CGI

PHP Group / PHP · affected before 8.1.29

Severity
CVSS 9.8 · Critical
Confidence
Confirmed
Exploit status
Exploited in the wild
EPSS
100.0%
First observed
Last observed

Decision summary

What security teams need to know first

Direct answers before the deeper technical record.

What it is

CVE-2024-4577 is an unauthenticated Argument Injection in PHP-CGI affecting PHP Group PHP. 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...

Is it exploited?

Yes. KEV Intelligence tracks this CVE as a known exploited vulnerability. Confidence is confirmed.

Who is affected?

PHP Group / PHP affected before 8.1.29.

What should we do?

Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.

Overview

Argument Injection in PHP-CGI

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.

Vendor Product Affected Status
php_group php Before 8.1.29 Affected
php_group php Before 8.2.20 Affected
php_group php Before 8.3.8 Affected
PHP Group PHP Before 8.1.29 Affected
PHP Group PHP Before 8.2.20 Affected
PHP Group PHP Before 8.3.8 Affected
Published
09 Jun 2024
Exploitation Reported
12 Jun 2024
Attack vector
Remote
Complexity
Low
Privileges
None
User interaction
None

Tags

windows nuclei_scanner ransomware malware nessus_scanner metasploit apache php cisa

CVE References

Exploitation evidence

Why KEV Intelligence marks this CVE as exploited

Third-party attestation and first-party sensor observation are shown separately so teams can judge the evidence chain.

Exploited in the wild

CISA

Recorded 12 Jun 2024

Independent exploitation attestation added to the KEV Intelligence record.

Used in malware

CISA

Recorded 12 Jun 2024

Malware families have been linked to exploitation of this CVE.

Proof of concept available

GitHub

Recorded 11 Jul 2024

Public scanner or PoC coverage increases practical exploitability.

Known exploited vulnerability sources

Per-source evidence links for KEV attestations are available through the KEV Intelligence Pro API.

Learn about Pro API access
Source Added
CISA First 2024-06-12 00:00 UTC
The Shadowserver 2026-05-31 00:00 UTC

Detection

Operational artifacts and observed signals

Make the evidence actionable in scanner, SOC, and edge-control workflows.

Observed signals

Request targets
0
User-Agents
0

Raw values available in Pro and Enterprise.

Virtual patch status

No KEV Intelligence virtual patch is currently available. Future rules ship for ModSecurity, Cloudflare, and AWS WAF.

Learn about virtual patches →

Risk and context

Severity, weaknesses, and research context

CVSS v3.1

9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS

100.0%

Potential Proof of Concepts

These PoCs are unverified and could contain malware. Use at your own risk.

BTtea/CVE-2024-4577-RCE-PoC

github · Created 2024-11-06 05:30:33 UTC · 23 stars

CVE-2024-4577 RCE PoC

longhoangth18/CVE-2024-4577

github · Created 2024-10-14 09:11:06 UTC · 4 stars

JeninSutradhar/CVE-2024-4577-checker

github · Created 2024-10-04 13:10:19 UTC · 3 stars

A Bash script designed to scan multiple domains for the CVE-2024-4577 vulnerability in PHP-CGI.

phirojshah/CVE-2024-4577

github · Created 2024-09-12 19:27:52 UTC · 2 stars

gh-ost00/CVE-2024-4577-RCE

github · Created 2024-08-20 02:56:03 UTC · 20 stars

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

waived/CVE-2024-4577-PHP-RCE

github · Created 2024-07-15 21:31:14 UTC · 5 stars

Automated PHP remote code execution scanner for CVE-2024-4577

bibo318/CVE-2024-4577-RCE-ATTACK

github · Created 2024-07-11 02:22:32 UTC · 4 stars

ATTACK PoC - PHP CVE-2024-4577

l0n3m4n/CVE-2024-4577-RCE

github · Created 2024-07-06 19:37:14 UTC · 7 stars

PoC - PHP CGI Argument Injection CVE-2024-4577 (Scanner and Exploit)

AlperenY-cs/CVE-2024-4577

github · Created 2024-06-28 14:11:15 UTC · 2 stars

Create lab for CVE-2024-4577

olebris/CVE-2024-4577

github · Created 2024-06-28 10:19:59 UTC · 0 stars

CVE-2024-4577

VictorShem/CVE-2024-4577

github · Created 2024-06-17 17:53:31 UTC · 2 stars

CVE-2024-4577 POC

gotr00t0day/CVE-2024-4577

github · Created 2024-06-15 02:49:37 UTC · 11 stars

Argument injection vulnerability in PHP

Sh0ckFR/CVE-2024-4577

github · Created 2024-06-13 14:25:04 UTC · 3 stars

Fixed and minimalist PoC of the CVE-2024-4577

nemu1k5ma/CVE-2024-4577

github · Created 2024-06-12 02:16:09 UTC · 1 stars

php-cgi RCE快速检测

K3ysTr0K3R/CVE-2024-4577-EXPLOIT

github · Created 2024-06-09 23:32:11 UTC · 9 stars

A PoC exploit for CVE-2024-4577 - PHP CGI Argument Injection Remote Code Execution (RCE)

Chocapikk/CVE-2024-4577

github · Created 2024-06-09 14:18:21 UTC · 29 stars

PHP CGI Argument Injection vulnerability

xcanwin/CVE-2024-4577-PHP-RCE

github · Created 2024-06-08 13:04:45 UTC · 144 stars

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

ZephrFish/CVE-2024-4577-PHP-RCE

github · Created 2024-06-08 12:23:35 UTC · 26 stars

PHP RCE PoC for CVE-2024-4577 written in bash, go, python and a nuclei template

zomasec/CVE-2024-4577

github · Created 2024-06-08 06:36:14 UTC · 3 stars

CVE-2024-4577 Exploit POC

manuelinfosec/CVE-2024-4577

github · Created 2024-06-08 05:27:44 UTC · 9 stars

Proof Of Concept RCE exploit for critical vulnerability in PHP <8.2.15 (Windows), allowing attackers to execute arbitrary commands.

0x20c/CVE-2024-4577-nuclei

github · Created 2024-06-08 03:12:28 UTC · 3 stars

CVE-2024-4577 nuclei-templates

WanLiChangChengWanLiChang/CVE-2024-4577-RCE-EXP

github · Created 2024-06-07 17:02:52 UTC · 0 stars

huseyinstif/CVE-2024-4577-Nuclei-Template

github · Created 2024-06-07 10:40:37 UTC · 19 stars

watchtowrlabs/CVE-2024-4577

github · Created 2024-06-07 09:52:54 UTC · 275 stars

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

11whoami99/CVE-2024-4577

github · Created 2024-06-07 09:51:39 UTC · 44 stars

POC & $BASH script for CVE-2024-4577

Junp0/CVE-2024-4577

github · Created 2024-06-07 09:42:40 UTC · 2 stars

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

TAM-K592/CVE-2024-4577

github · Created 2024-06-07 05:50:23 UTC · 79 stars

CVE-2024-4577 is a critical vulnerability in PHP affecting CGI configurations, allowing attackers to execute arbitrary commands via crafted URL parameters.

PHP CGI - Argument Injection

nuclei · Created Unknown

php_cgi_arg_injection_rce_cve_2024_4577

metasploit · Created Unknown

Metasploit module for CVE-2024-4577

Timeline

From disclosure to observed exploitation

  1. KEV confirmed by The Shadowserver

    Exploitation attested by an external source

  2. Metasploit module available

    Exploit module available

  3. Nuclei template available

    Scanner coverage available

  4. Nessus plugin available

    Scanner coverage available

  5. Added to CISA KEV

    Listed in the CISA Known Exploited Vulnerabilities catalog

  6. First public exploitation report

    Exploit observed in malware

  7. CVE published

    Vulnerability disclosed publicly

  8. Public PoC available

    Public proof-of-concept code published

  9. CVE ID reserved

    Identifier reserved by the CNA

Pro API

Automate this intelligence

Confidence, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.

  • Evidence confidence and provenance
  • First-party sensor telemetry
  • PoC and scanner references
  • Affected versions and enrichment
  • Automation-ready JSON delivery

GET /api/v2/pro/kevs/CVE-2024-4577

Free JSON includes basic KEV fields
{
  "cve_id": "CVE-2024-4577",
  "confidence": "Confirmed",
  "cvss_score": 9.8,
  "epss_score": 0.99987,
  "exploit_status": {
    "exploited_in_the_wild": true,
    "active_exploitation_observed": false
  },
  "sensor_telemetry": { "attempts": 0, "sensors": 0 }
}

Email Alerts

Get High-Impact KEV Alerts by Email

KEV Intelligence tracks known exploited vulnerabilities beyond CISA KEV. Subscribe for occasional, curator-picked alerts when exploitation warrants attention. For every update, use the RSS feed or API.

Occasional high-impact alerts. Unsubscribe anytime. See our Privacy Policy.