As of , CVE-2024-4577 in PHP Group PHP is on CISA's list of exploited vulnerabilities: CISA listed it on . Our patch-first group: Patch this week.
CVE-2024-4577
PHP Group PHP: PHP-CGI OS Command Injection. Exploited, and in our Patch this week group.
Our patch-first group
Patch this week
- Ransomware use
- Metasploit module
- EPSS 0.99
CISA's required action
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Patch infofixed versions and vendor advice
What to install
Affects PHP 8.1 before 8.1.29, 8.2 before 8.2.20 and 8.3 before 8.3.8.
Fixed in 8.1.29, 8.2.20 and 8.3.8.
Vendor advice
Vendor advice: www.php.net, from CISA's entry.
- www.php.netThis vulnerability affects a common open-source component, third-party library, or a protocol used by different products. Please check…
- EPSS score
- 0.99Higher than 99% of the CVEs EPSS scores.
EPSS estimates the chance of exploitation activity in the next 30 days.
- Exploited
- Yes CISA listed it on 12 June 2024
- US federal deadline
- 3 July 2024 21 days after CISA listed it. US federal civilian agencies must fix it by then.
- Used in ransomware campaigns
- Known
- EPSS when listed
- 0.28 on 12 June 2024 EPSS on the day CISA listed it.
- Public exploit
- 1 Metasploit module and 1 Exploit-DB entry
Since listing
EPSS since listing
EPSS for CVE-2024-4577 since CISA listed it, on the days its value to 2 decimals changed. EPSS scores by FIRST.
Show the numbers
| From | EPSS |
|---|---|
| 0.28 | |
| 0.93 | |
| 0.96 | |
| 0.97 | |
| 0.96 | |
| 0.97 | |
| 0.95 | |
| 0.96 | |
| 0.95 | |
| 0.96 | |
| 0.95 | |
| 0.94 | |
| 0.99 |
Timeline
What happened when
- The CVE record was published.
- CISA added it to its list of exploited vulnerabilities.
- The US federal deadline to fix it.
- Exploit-DB published an exploit (EDB-ID 52331).
CISA's required action
What CISA says to do
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Read further: CISA's catalog
The flaw
What the flaw is
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.
CISA's description
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.
The CVE record's description, from php
- CVE published
- 9 June 2024
- Assigned by
- php
- CVSS
- 9.8 Critical (CVSS 3.1, from the CNA)
- CWE-78
- Improper Neutralization of Special Elements used in an OS Command
- CISA SSVC, exploitation
- active
- CISA SSVC, automatable
- yes
- CISA SSVC, technical impact
- total
Public exploits
Public exploits
Facts from Metasploit's module list and Exploit-DB's index; we never copy exploit code.
Same product
PHP: other exploited entries
| Vulnerability | Product | Our group | Listed | Deadline | EPSS |
|---|---|---|---|---|---|
| CVE-2026-109618Memory Corruption | PHP | Patch nowCISA triageExploit-DB | Due | 0.99 | |
| CVE-2026-109619Stale Internal Request-State | PHP | Patch nowCISA triage | Due | 0.99 |
Sources
- CVE records: Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation (source). Licence: CVE Program Terms of Use
- CWE names: Copyright © 2006-2026, The MITRE Corporation. CWE, CWSS, CWRAF, and the CWE logo are trademarks of The MITRE Corporation (source). Licence: CWE Terms of Use
- EPSS scores by FIRST (https://www.first.org/epss/), generated by Empirical Security (source)