CVE-2024-4577
criticalpriority · act · 90OT risk · criticalKEV · exploitedEPSS 1.000 · 100 %ileexploit · weaponizedDEEUNLRUUSadded 2024-06-12remediate by 2024-07-03
required action Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
EPSS · scored 2026-10-23
PHP-CGI OS Command Injection Vulnerability
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 8.1–9.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
ATT&CK techniques
ATT&CK techniques this enables or maps to.
exploits (74)
Public proof-of-concept and weaponised exploit code.
- EDB-52331PHP CGI Module 8.3.4 - Remote Code Execution (RCE)PoC · exploit_db
- 0XFFFF-XD/CVE-2024-4577-PHP-CGI-RCE0XFFFF-XD/CVE-2024-4577-PHP-CGI-RCEPoC · poc_in_github
- 0x20c/CVE-2024-4577-nucleiCVE-2024-4577 nuclei-templatesPoC · poc_in_github
- 11whoami99/CVE-2024-4577POC & $BASH script for CVE-2024-4577PoC · poc_in_github
affected products (98)
Products and version ranges known to be affected.
advisories (8)
Vendor and ecosystem advisories describing this.
- NCSC-2024-0243Kwetsbaarheden verholpen in PHPNL2024-06-10csaf · ncsc_nlNL
Er zijn kwetsbaarheden verholpen in PHP.
- NCSC-2024-0411Kwetsbaarheden verholpen in Oracle Database productenNL2024-10-17csaf · ncsc_nlNL
Oracle heeft kwetsbaarheden verholpen in diverse Database producten en subsystemen, zoals de Core database, Application Express, Autonomous Health Framework, Essbase, GoldenGate, SQL Developer en Secure Backup.
- NCSC-2024-0414Kwetsbaarheden verholpen in Oracle CommunicationsNL2024-10-17csaf · ncsc_nlNL
Oracle heeft kwetsbaarheden verholpen in diverse Communications producten en systemen.
- WID-SEC-W-2024-1320PHP: Mehrere SchwachstellenDeutsch2024-06-06csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in PHP ausnutzen, um beliebigen Programmcode auszuführen und um Sicherheitsmechanismen zu umgehen.
- WID-SEC-W-2024-3195Oracle Communications: Mehrere SchwachstellenDeutsch2024-10-15csaf · cert_bundDE
Ein entfernter, anonymer oder authentisierter Angreifer kann mehrere Schwachstellen in Oracle Communications ausnutzen, um die Vertraulichkeit, Integrität und Verfügbarkeit zu gefährden.
- BIT-libphp-2024-4577Argument Injection in PHP-CGI2025-08-11vendor · osvUS
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.
- BIT-php-2024-4577Argument Injection in PHP-CGI2024-06-12vendor · osvUS
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.
- BIT-php-min-2024-4577Argument Injection in PHP-CGI2025-01-14vendor · osvUS
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.
also known as (8)
Other names and identifiers for this entity.
- CNNVD-202406-852cnnvd
- EUVD-2024-44188enisa_euvd
- BDU:2024-04432fstec_bdu
- GHSA-vxpp-6299-mxw3enisa_euvd
- BIT-libphp-2024-4577osv
- BIT-php-2024-4577osv
- BIT-php-min-2024-4577osv
- GHSA-3qgc-jrrr-25jvosv
sources
Which sources assert this record, and when.
references (66)
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2024/06/07/1cnnvd
- https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/cnnvd
- https://blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.htmlcnnvd
- https://cert.be/en/advisory/warning-php-remote-code-execution-patch-immediatelycnnvd
- https://cxsecurity.com/cveshow/CVE-2024-4577/cnnvd
- https://cxsecurity.com/issue/WLB-2024060031cnnvd
- https://cxsecurity.com/issue/WLB-2025030034cnnvd
- https://cxsecurity.com/issue/WLB-2025070001cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan