Skip to content

CVE-2024-8926 PHP CGI Parameter Injection Vulnerability (CVE-2024-4577 bypass)

HighCVSS 8.8 EPSS 3.7% PoC
Published
Updated
Exploit status
Proof-of-concept only

Description

In PHP versions 8.1.* before 8.1.30, 8.2.* before 8.2.24, 8.3.* before 8.3.12, when using a certain non-standard configurations of Windows codepages, the fixes for  CVE-2024-4577 https://github.com/advisories/GHSA-vxpp-6299-mxw3  may still be bypassed and the same command injection related to Windows "Best Fit" codepage behavior can be achieved. This 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 products

ProductAffected versionsFixed in
Microsoft cbl mariner < 8.1.30-1 8.1.30-1
Microsoft azure linux < 8.3.12-1 8.3.12-1
debian/php8.2(Debian:12) < 8.2.24-1~deb12u1 8.2.24-1~deb12u1
debian/php8.2(Debian:12) = 8.2.10-1 No fix listed
debian/php8.2(Debian:12) = 8.2.10-2 No fix listed
debian/php8.2(Debian:12) = 8.2.12-1 No fix listed
debian/php8.2(Debian:12) = 8.2.16-1 No fix listed
debian/php8.2(Debian:12) = 8.2.16-2 No fix listed
debian/php8.2(Debian:12) = 8.2.17-1 No fix listed
debian/php8.2(Debian:12) = 8.2.18-1 No fix listed
debian/php8.2(Debian:12) = 8.2.18-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.20-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.20-2 No fix listed
debian/php8.2(Debian:12) = 8.2.20-3 No fix listed
debian/php8.2(Debian:12) = 8.2.21-1 No fix listed
debian/php8.2(Debian:12) = 8.2.23-1 No fix listed
debian/php8.2(Debian:12) = 8.2.5-2 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1.1 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1.2 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1~deb12u1 No fix listed
PHP < 8.1.30 8.1.30
PHP < 8.2.24 8.2.24
PHP < 8.3.12 8.3.12
PHP >= 8.1.0, < 8.1.30 8.1.30
Show 5 more
ProductAffected versionsFixed in
PHP >= 8.2.0, < 8.2.24 8.2.24
PHP >= 8.3.0, < 8.3.12 8.3.12
alpine/php81(Alpine:v3.19) < 8.1.30-r0 8.1.30-r0
alpine/php82(Alpine:v3.20) < 8.2.24-r0 8.2.24-r0
alpine/php83(Alpine:v3.20) < 8.3.12-r0 8.3.12-r0

References