9.8

CVE-2024-4577

Warning
Media report
Exploit

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.

Data is provided by the National Vulnerability Database (NVD)
PhpPhp Version >= 8.1.0 < 8.1.29
   MicrosoftWindows Version-
PhpPhp Version >= 8.2.0 < 8.2.20
   MicrosoftWindows Version-
PhpPhp Version >= 8.3.0 < 8.3.8
   MicrosoftWindows Version-
FedoraprojectFedora Version39
FedoraprojectFedora Version40

12.06.2024: CISA Known Exploited Vulnerabilities (KEV) Catalog

PHP-CGI OS Command Injection Vulnerability

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.

Description

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

Required actions
EPSS Metriken
Type Source Score Percentile
EPSS FIRST.org 94.37% 1
CVSS Metriken
Source Base Score Exploit Score Impact Score Vector string
nvd@nist.gov 9.8 3.9 5.9
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
security@php.net 9.8 3.9 5.9
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

https://isc.sans.edu/diary/30994
Third Party Advisory
Exploit