CVE-2024-4577GHSA-3qgc-jrrr-25jv
PHP-CGI OS Command Injection Vulnerability
CVSS
9.8CriticalExploit odds (EPSS)>99.9%Chance of exploitation activity in the next 30 days, higher than 99.9% of CVEs. Scored 23 Oct 2026FIRST EPSS
CISA required actionApply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. CISA KEV
What fixes it
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Timeline
- 6 Jun 2024Exploit code publicMetasploit
- 9 Jun 2024, 19:42 UTCPublishedCVE List
- 12 Jun 2024Added to CISA KEVCISA KEV
Public exploit code and templates 3
- Exploit modulePHP CGI Argument Injection Remote Code Execution 6 Jun 2024Metasploit
- Webapps exploitPHP CGI Module 8.3.4 - Remote Code Execution (RCE) 15 Jun 2025Exploit-DB
- Scanner templatePHP CGI - Argument InjectionNuclei
Listed so defenders can prioritize. Threatline links to the source and does not host exploit code.
Reports 2
1 outlet mention it. Reports are not confirmation; each links to its source.
- Ghost-Bx1/php-exploits-CVE-2026-109618-CVE-2026-109619-CVE-2024-4577: Full exploits and PoCs for php2shell (CVE-2026-109618, CVE-2026-109619) and CVE-2024-4577 - PHP critical RCE (CVSS 9.2-9.8)GitHub proof-of-concept repositories, 23 Oct 2026Exploit code
- Ghost-Bx1/POC-CVE-2026-109618-CVE-2026-109619-CVE-2024-4577GitHub proof-of-concept repositories, 23 Oct 2026Exploit code
Description
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.
Text from CVE List
Affected versions 6
- PHPaffected: 8.1.* before 8.1.29CVE List
- PHPaffected: 8.2.* before 8.2.20CVE List
- PHPaffected: 8.3.* before 8.3.8CVE List
- PHP< 8.3.8GitHub
- PHP< 8.2.20GitHub
- PHP< 8.1.29GitHub
References 23
- php.net/ChangeLog-8.php#8.1.29Fixvia CVE List
- php.net/ChangeLog-8.php#8.2.20Fixvia CVE List
- php.net/ChangeLog-8.php#8.3.8Fixvia CVE List
- github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jvAdvisoryvia CVE List
- devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/Advisoryvia CVE List
- arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/Advisoryvia CVE List
- cert.be/en/advisory/warning-php-remote-code-execution-patch-immediatelyAdvisoryvia CVE List
- security.netapp.com/advisory/ntap-20240621-0008/Advisoryvia CVE List
- github.com/rapid7/metasploit-framework/pull/19247Exploitvia CVE List
- nvd.nist.gov/vuln/detail/CVE-2024-4577Referencevia CISA KEV
- blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.htmlReferencevia CVE List
- imperva.com/blog/imperva-protects-against-critical-php-vulnerability-cve-2024-4577/Referencevia CVE List
- github.com/11whoami99/CVE-2024-4577Referencevia CVE List
- github.com/xcanwin/CVE-2024-4577-PHP-RCEReferencevia CVE List
- labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/Referencevia CVE List
- github.com/watchtowrlabs/CVE-2024-4577Referencevia CVE List
- isc.sans.edu/diary/30994Referencevia CVE List
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/Referencevia CVE List
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/Referencevia CVE List
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-4577Referencevia CVE List
- vicarius.io/vsociety/posts/php-cgi-os-command-injection-vulnerability-cve-2024-4577Referencevia CVE List
- vicarius.io/vsociety/posts/php-cgi-argument-injection-to-rce-cve-2024-4577Referencevia CVE List
- blog.talosintelligence.com/new-persistent-attacks-japan/Referencevia CVE List