Skip to content
OpenAdvisories
High · 8.1 CVE-2024-8926 EUVD-2024-49489

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

Published Oct 8, 2024 · Updated Nov 3, 2025 · Assigned by php

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

VendorProductAffectedFixed
PHP Group PHP 8.1.* – < 8.1.30, 8.2.* – < 8.2.24, 8.3.* – < 8.3.12 8.1.30

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 php8.2 8.2.24-1~deb12u1 DSA-5780-1
ReleasePackageFixed inAdvisory
Alpine v3.20 php82 8.2.24-r0 —
Alpine v3.20 php83 8.3.12-r0 —
Alpine v3.19 php81 8.1.30-r0 —

Advisories 2

References