CVE-2024-4577
CONFIRMED EXPLOITEDKNOWN RANSOMWARE CAMPAIGN USEPHP-CGI OS Command Injection Vulnerability
Is PHP Group PHP affected by CVE-2024-4577?
PHP Group PHP is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2024-4577, added on 2024-06-12. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (5 vulnerable CPE entries): fedoraproject fedora and php php.
Published CPE version bounds mark releases below 8.3.8 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2024-07-03, and CISA records known ransomware campaign use against it.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2026-109619Same productPHP Group PHP
PHP Stale Internal Request-State Vulnerability
- CVE-2026-109618Same productPHP Group PHP
PHP Memory Corruption Vulnerability
- CVE-2026-133323Shared weaknessMitel MiCollab
Mitel MiCollab OS Command Injection Vulnerability
- CVE-2026-103406Shared weaknessHewlett Packard Enterprise (HPE) Juniper Session Smart Conductor and Session Smart Router
Hewlett Packard Enterprise (HPE) Juniper Session Smart Conductor and Session Smart Router OS Command Injection Vulnerability
- CVE-2017-3506Neighboring entryOracle WebLogic Server
Oracle WebLogic Server OS Command Injection Vulnerability
- CVE-2024-4610Neighboring entryArm Mali GPU Kernel Driver
Arm Mali GPU Kernel Driver Use-After-Free Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
PHP, specifically Windows-based PHP used in CGI mode, contains an OS command injection vulnerability that allows for arbitrary code execution. This vulnerability is a patch bypass for CVE-2012-1823.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
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.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2024-06-12. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Known".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of PHP has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- HTTP / web application surface (PHP Group PHP): inspect reverse-proxy, WAF, and application access/error logs alongside `Zeek http.log` and `Suricata eve.json` for anomalous requests targeting exposed endpoints.
- Command/Argument Injection class (CWE-77/78/88): monitor process trees for `/bin/sh`, `bash`, `cmd.exe`, `powershell`, `curl`, or `wget` spawned as child processes of the service daemon.
- Inventory all hosts running PHP Group PHP and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
- http://www.openwall.com/lists/oss-security/2024/06/07/1Mailing ListThird Party Advisory
- https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/ExploitPress/Media CoverageThird Party Advisory
- https://blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.htmlThird Party Advisory
- https://cert.be/en/advisory/warning-php-remote-code-execution-patch-immediatelyThird Party Advisory
- https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/ExploitThird Party Advisory
- https://github.com/11whoami99/CVE-2024-4577Exploit
- https://github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jvExploitThird Party Advisory
- https://github.com/rapid7/metasploit-framework/pull/19247ExploitIssue TrackingPatch
- https://github.com/watchtowrlabs/CVE-2024-4577ExploitThird Party Advisory
- https://github.com/xcanwin/CVE-2024-4577-PHP-RCEExploitThird Party Advisory
- https://isc.sans.edu/diary/30994ExploitThird Party Advisory
- https://labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/ExploitThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/Mailing List
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/Mailing List
- https://security.netapp.com/advisory/ntap-20240621-0008/Third Party Advisory
- https://www.imperva.com/blog/imperva-protects-against-critical-php-vulnerability-cve-2024-4577/Third Party Advisory
- https://www.php.net/ChangeLog-8.php#8.1.29Release Notes
- https://www.php.net/ChangeLog-8.php#8.2.20Release Notes
- https://www.php.net/ChangeLog-8.php#8.3.8Release Notes
- http://www.openwall.com/lists/oss-security/2024/06/07/1Mailing ListThird Party Advisory
- https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/ExploitPress/Media CoverageThird Party Advisory
- https://blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.htmlThird Party Advisory
- https://blog.talosintelligence.com/new-persistent-attacks-japan/ExploitThird Party Advisory
- https://cert.be/en/advisory/warning-php-remote-code-execution-patch-immediatelyThird Party Advisory
- https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/ExploitThird Party Advisory
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Rust-powered Windows Event Log (EVTX) fast forensics timeline generator & Sigma engine
Endpoint visibility, digital forensics, and incident response (DFIR) platform
Open-source XDR and SIEM platform for endpoint and cloud security monitoring
VirusTotal's memory-safe Rust rewrite of YARA for binary & implant hunting