CVE-2024-4577: PHP-CGI OS Command Injection Vulnerability
- Is it exploited?
Yes. CISA added it to the Known Exploited Vulnerabilities catalog on , 3 days after the CVE record was published.
- How likely is exploitation in the next 30 days?
- 100%
EPSS score, percentile 100 of all scored records
- How severe?
- 9.8 Critical
CVSS v3.1 base score, given by the CNA
- What should I do?
CISA deadline . Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
The CVE record links no vendor advisory, patch or mitigation.
- Which versions are affected?
Affected
- from 8.1.* to before 8.1.29
- from 8.2.* to before 8.2.20
- from 8.3.* to before 8.3.8
Source: CISA Known Exploited Vulnerabilities (KEV) catalog, 2026.10.28, as of ; FIRST Exploit Prediction Scoring System (EPSS), v2026.06.15, as of ; CVE List V5 (CVE Program), cve_2026-10-28_0000Z, as of . About the data.
What to do
Required action, set by CISA
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
CISA due date for this action: .
Advisories and patches
The CVE record links no vendor advisory, patch or mitigation.
Linked from CISA's catalog entry
Affected products and versions
As listed in the CVE record.
| Status | Versions |
|---|---|
| Affected | from 8.1.* to before 8.1.29 |
| Affected | from 8.2.* to before 8.2.20 |
| Affected | from 8.3.* to before 8.3.8 |
Versions not listed are: affected.
Source: CVE List V5 (CVE Program), cve_2026-10-28_0000Z, as of . About the data.
About this vulnerability
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.
Summary: CISA's KEV catalog, as of .
- CISA added CVE-2024-4577 to its Known Exploited Vulnerabilities (KEV) catalog on 12 Jun 2024.
- CISA marks it as known to be used in ransomware campaigns.
- The due date CISA sets for the required action is 3 Jul 2024.
- The CVE record was published on 9 Jun 2024, 3 days before it was added to KEV.
- The CVE record carries a CVSS v3.1 base score of 9.8 (Critical), given by its CNA.
- FIRST's EPSS model puts the probability of exploitation in the next 30 days at 100% (percentile 100), as of 28 Oct 2026.
- CISA's SSVC assessment in the CVE record: exploitation active, automatable yes, technical impact total.
Source: CISA Known Exploited Vulnerabilities (KEV) catalog, 2026.10.28, as of ; CVE List V5 (CVE Program), cve_2026-10-28_0000Z, as of ; FIRST Exploit Prediction Scoring System (EPSS), v2026.06.15, as of . About the data.
Description
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.
Source: CVE List V5 (CVE Program), cve_2026-10-28_0000Z, as of . About the data.
Weakness
- CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
CWE and CAPEC are maintained by MITRE; the entries are those named in the CVE record and the KEV entry.
Timeline
| Date | Event |
|---|---|
| CVE record published | |
| Added to CISA KEV | |
| CISA due date for the required action | |
| CVE record last updated |
References
- github.com
- blog.orange.tw
- devco.re
- arstechnica.com
- imperva.com
- github.com
- github.com
- github.com
- labs.watchtowr.com
- github.com
- php.net
- php.net
7 more in the CVE record.
More exploited PHP vulnerabilities
- CVE-2026-109618: PHP Memory Corruption Vulnerability
- CVE-2026-109619: PHP Stale Internal Request-State Vulnerability
- CVE-2016-10033: PHPMailer Command Injection Vulnerability
- CVE-2012-1823: PHP-CGI Query String Parameter Vulnerability
- CVE-2019-11043: PHP FastCGI Process Manager (FPM) Buffer Overflow Vulnerability