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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | php8.2 | 8.2.24-1~deb12u1 | DSA-5780-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- WID-SEC-2024-2230 PHP: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 21, 2026
- DSA-5780-1 php8.2 - security update Debian Security (DSA / DLA) · Mar 9, 2026