CVE-2024-4577
Exploitation confirmed. First attested on 2024-06-07 by CISA-ADP, CISA KEV, GCVE · kevintel, GCVE · shadowserver, GCVE · siberkapan.
- Published2024-06-09
- Fixed in8.3.8 · 8.2.20 · 8.1.29
- WeaknessCWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2024-06-0713:40Listed as exploited by GCVEGCVE
- 2024-06-0713:40Exploitation first reportedGCVE
- 2024-06-0920:15CVE publishedNVD
- 2024-06-12Added to the CISA KEV catalogCISA KEV
- 2024-06-1503:55SSVC exploitation set to activeCISA-ADP
- 2025-06-15Exploit-DB entryExploit-DB
Observed activity
isMalicious corpus · updated 2026-11-18 15:37 UTC| Indicator | Role | Seen | Source |
|---|---|---|---|
| 79.76.58.113 | payload delivery | 18 h ago | FireHOL - Blocklist Net Ua, FireHOL - Firehol Level4, Romain Marcoux - Malicious IPs, Community IOC feed, ThreatHive - Hive Blocklist, T145 - Black Mirror IPv4 Blocklist, Bitwire - Inbound Blocklist, Borestad - AbuseIPDB Blocklist (30d), Opendbl Net - Blocklistde All.list, Romain Marcoux - Malicious Outgoing IPs, Blocklist - All Attacks (48h), IPsum Level 1, Threatview IP Blocklist, Ultimate Hosts Blacklist - Blocklist.de, Malware-Filter - Botnet Filter IPs, Malware-Filter - Botnet Filter, IPsum - Malicious IPs, FireHOL - Blocklist De, FireHOL - Blocklist De Ssh, FireHOL - Firehol Level2, Blocklist - All SSH attacks (48h), Bitwire - Outbound Blocklist, HaGeZi TIF - Threat Intelligence Feed IPs, CIRCL OSINT Feed, AbuseIPDB aggregate - 90-day reported IPv4 (borestad), blocklist.net.ua - Full Blocklist (CSV), FFraud - Confirmed abusive IPs, Y3ll0w - CrowdSec CAPI decisions, cbuijs - Bad IPs, ShadowWhisperer - IPs Threats, toxyl - SSH honeypot swarm attacker hosts (3m), ConfigServer - Threat IPs all services 365d, 0xwarrior - Lab/honeypot malicious IPs, NETMOUNTAINS - Curated IP blocklist, NetAPI - Compromised IPs (current), SecureWAN - CTI feed (2+ sources), Maltrail Trails (release CSV), kamalmjt - Emerging attackers |
| 120.48.32.130 | payload delivery | 18 h ago | FireHOL - Blocklist Net Ua, FireHOL - Firehol Level4, Romain Marcoux - Malicious Outgoing IPs, Romain Marcoux - Malicious IPs, Community IOC feed, ThreatHive - Hive Blocklist, T145 - Black Mirror IPv4 Blocklist, Bitwire - Outbound Blocklist, Bitwire - Inbound Blocklist, Borestad - AbuseIPDB Blocklist (30d), IPsum Level 1, Borestad - AbuseIPDB Blocklist (1d), IPsum - Malicious IPs, AbuseIPDB aggregate - 90-day reported IPv4 (borestad), blocklist.net.ua - Full Blocklist (CSV), FFraud - Confirmed abusive IPs, Y3ll0w - CrowdSec CAPI decisions, cbuijs - Bad IPs, ShadowWhisperer - IPs Threats, ConfigServer - Threat IPs all services 365d, ReportedIP - Community blacklist (all), SecureWAN - CTI feed (2+ sources), 0xwarrior - Lab/honeypot malicious IPs, Maltrail Trails (release CSV), ShadowWhisperer - IPs Probes |
| 75.119.132.109 | payload delivery | 18 h ago | FireHOL - Blocklist Net Ua, FireHOL - Firehol Level4, Romain Marcoux - Malicious IPs, Community IOC feed, T145 - Black Mirror IPv4 Blocklist, Bitwire - Inbound Blocklist, AbuseIPDB aggregate - 90-day reported IPv4 (borestad), blocklist.net.ua - Full Blocklist (CSV), FFraud - Confirmed abusive IPs, cbuijs - Bad IPs, 0xwarrior - Lab/honeypot malicious IPs, ShadowWhisperer - IPs Threats Unclassified, Y3ll0w - CrowdSec CAPI decisions, Maltrail Trails (release CSV), Romain Marcoux - Malicious Outgoing IPs, Bitwire - Outbound Blocklist |
Block these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2024-4577?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2024-4577?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · OSV · CISA-ADP| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.3 | ≥ 8.3.0, < 8.3.8 | 8.3.8 | NVD · OSV |
| 8.2 | ≥ 8.2.0, < 8.2.20 | 8.2.20 | NVD · OSV |
| 8.1 | ≥ 8.1.0, < 8.1.29 | 8.1.29 | NVD |
| 8.1 | < 8.1.29 | 8.1.29 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.3 | ≥ 8.3.0, < 8.3.8 | 8.3.8 | CISA-ADP |
| 8.2 | ≥ 8.2.0, < 8.2.20 | 8.2.20 | CISA-ADP |
| 8.1 | ≥ 8.1.0, < 8.1.29 | 8.1.29 | CISA-ADP |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 39.x | = 39 | no fix published | NVD |
| 40.x | = 40 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As php, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- PHP Group PHPother versions: affected
https://github.com/php/php-srcplatforms: Windows
Affected- ≥ 8.1.*, < 8.1.29fixed in 8.1.29semver
- ≥ 8.2.*, < 8.2.20fixed in 8.2.20semver
- ≥ 8.3.*, < 8.3.8fixed in 8.3.8semver
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-06-21
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- phpAzure Linux:3all versions · fixed in 8.3.8-1
- phpAzure Linux:2all versions · fixed in 8.1.29-1
- php-7.2Echoall versions · fixed in 7.2.34+e1
- php-8.1Wolfiall versions · fixed in 8.1.29-r0
- php-8.1Chainguardall versions · fixed in 8.1.29-r0
- php-8.2Wolfiall versions · fixed in 8.2.20-r0
- php-8.2Chainguardall versions · fixed in 8.2.20-r0
- php8openSUSE:Tumbleweedall versions · fixed in 8.3.12-1.1
3 more package ranges on OSV.dev
Vendor advisories
- CVE-2024-4577 Red Hat Product Security
php: Argument Injection in PHP-CGI
Fix
- Update PHP to 8.3.8 · 8.2.20 · 8.1.29
- CISA’s required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.due 2024-07-03
Advisories and patches
- github.comPatch
- www.php.netRelease Notes
- www.php.netRelease Notes
- www.php.netRelease Notes
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- available ProjectDiscovery
- Proof of concept
- PoC-in-GitHub20 repositories, unverifiedknown since 2026-11-01TAM-K592/CVE-2024-4577Ra1n-60W/CVE-2024-4577princew88/CVE-2024-457711whoami99/CVE-2024-4577watchtowrlabs/CVE-2024-4577
- Metasploit modules
- 1 moduleexploit/windows/http/php_cgi_arg_injection_rce_cve_2024_4577rank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
CISA Known Exploited Vulnerability
- Date Added
- 2024-06-12
- Patch Due Date
- 2024-07-03
- Ransomware Use
- Known
- Required Action
- Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Sources
- CISA KEVKEV entry2024-06-12
- ENISA EUVDexploitation2024-06-122024-06-12
- GCVEexploitation2024-06-07
- CISA-ADPSSVC decisionactive2024-06-15
- CNACVSS 3.19.8known since 2026-10-23
- NVDCVSS 3.19.8read 2026-10-23
- CNAweakness (CWE)CWE-78known since 2026-10-23
- NVDweakness (CWE)CWE-78read 2026-10-23
- FIRST EPSSEPSS score99.9 %read 2026-11-18
- PoC-in-GitHubproof of concept20known since 2026-11-01
- Exploit-DBdetectionread 2026-11-18
- ProjectDiscoverydetectionread 2026-11-18
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-42424same flawAzure Linux · MIT
- AZL-42433same flawAzure Linux · MIT
- BIT-libphp-2024-4577same flawBitnami · Apache-2.0
- BIT-php-2024-4577same flawBitnami · Apache-2.0
- BIT-php-min-2024-4577same flawBitnami · Apache-2.0
- CGA-gmwp-fhmg-pqfmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-p643-hjxc-p95csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-v39m-ww8v-h7fqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-x9h3-83w9-5jxhsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2024-44188same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-3qgc-jrrr-25jvsame flawGitHub Advisory Database · CC-BY-4.0
- GHSA-vxpp-6299-mxw3same flawGitHub Advisory Database · CC-BY-4.0
- exploit/windows/http/php_cgi_arg_injection_rce_cve_2024_4577exploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- EDB-52331exploit referenceExploit-DB · BSD-3-Clause
- openSUSE-SU-2024:14376-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2024-06-09
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-3qgc-jrrr-25jv GHSA-vxpp-6299-mxw3
Frequently asked questions
What is CVE-2024-4577?
Is CVE-2024-4577 actively exploited?
What is the CVSS score for CVE-2024-4577?
Running PHP? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA KEV · CC0-1.0 (cisagov/kev-data)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-3qgc-jrrr-25jv, GHSA-vxpp-6299-mxw3
- Metasploit Framework · BSD-3-Clause
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0