Skip to main content

CVE-2024-4577

PHP Group — PHP-CGI OS Command Injection Vulnerability

PHP Group · CWE-78 — Operating system command injection · in CISA KEV since 2024-06-12

ExigentKEV since 2024 · listed over a yearRansomwareCISA KEVActively Exploited
94

EVRS 94 of 100 Immediate

Out-of-Band / Urgent Remediation

Rank 36 of 2,960 tracked

Download PDF

Why it scores 94

Evidence available: 6 of 7 signals

Listed in the CISA KEV catalog, and associated with known ransomware campaigns.

  • CISA KEVApplied
  • RansomwareApplied
  • Vendor exploitationDid not apply
  • EPSSApplied
  • Microsoft Exploitability IndexNot applicable
  • Pre-patch disclosureNo data
  • KEV recencyDid not apply
  • CVSSApplied

The band answers “how soon”, not “how bad”. No data for: Pre-patch disclosure. Why some signals show no data

Fix

Patch or fixed version identified

CISA required action

Fixed in

php: update to 8.1.29 or later | php: update to 8.2.20 or later | php: update to 8.3.8 or later

Affected versions

  • php>= 8.1.0 < 8.1.29>= 8.2.0 < 8.2.20>= 8.3.0 < 8.3.8
  • windows
  • fedora3940

Remediation

Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Fixed versions from NVD.

Evidence

Each value with its source
MeasureValueSource
CVSS base scoreHow severe the flaw is in itself. It does not say how likely an attack is. 9.8 NVD
FIRST EPSSFIRST's estimate of the chance this is exploited in the next 30 days, and how that ranks against all CVEs. 0.999 (99.98th pctl) FIRST EPSS
Actively exploitedWhether a source of record has confirmed attacks using it in the wild. Confirmed CISA KEV
Ransomware campaign useWhether CISA has seen ransomware operators use it. Known CISA KEV
CISA remediation deadlineThe date US federal agencies must have fixed or mitigated it. 2024-07-03 · KEV since 2024 · listed over a year CISA KEV
Public exploit moduleA module existing is not the same as active exploitation. Public module exists Metasploit
EUVD cross-referenceENISA's record: CVSS 9.8 (v3.1), assigned by php. Listed ENISA EUVD

Description

NVD

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.

What CISA says to do

Public module

Metasploit lists a public excellent-rank module for this CVE: PHP CGI Argument Injection Remote Code Execution (windows/http/php_cgi_arg_injection_rce_cve_2024_4577). A module existing is not the same as active exploitation; see metasploit.com.