cbcvebase.
CVE-2024-4577
published 2024-06-09

CVE-2024-4577: 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…

critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOIT
CISA Known Exploited Vulnerabilitydue 2024-07-03
Exploited in the wild
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.

Affected

24 ranges
VendorProductVersion rangeFixed in
debianphp7.4< php8.2 8.2.24-1~deb12u1 (bookworm)php8.2 8.2.24-1~deb12u1 (bookworm)
debianphp7.4
debianphp8.2< php8.2 8.2.24-1~deb12u1 (bookworm)php8.2 8.2.24-1~deb12u1 (bookworm)
debianphp8.2
fedoraprojectfedora
fedoraprojectfedora
msrcazl3_php_8.3.6-1_on_azure_linux_3.0
msrcazl3_php_8.3.8-1_on_azure_linux_3.0
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64
msrccbl2_php_8.1.28-1_on_cbl_mariner_2.0
msrccbl2_php_8.1.29-1_on_cbl_mariner_2.0
msrccbl_mariner_2.0_arm
msrccbl_mariner_2.0_x64
paloaltopan-os
phpphp>= 8.1.0 < 8.1.308.1.30
phpphp>= 8.1.0 < 8.1.298.1.29
phpphp>= 8.2.0 < 8.2.248.2.24
phpphp>= 8.2.0 < 8.2.208.2.20
phpphp>= 8.3.0 < 8.3.128.3.12
phpphp>= 8.3.0 < 8.3.88.3.8
php_groupphp>= 8.1.* < 8.1.308.1.30
php_groupphp>= 8.2.* < 8.2.248.2.24
php_groupphp>= 8.3.* < 8.3.128.3.12

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
osv9.8CRITICAL
vulncheck10.0CRITICAL
cisa9.8CRITICAL