PHP-CGI Windows code page character misinterpretation
CVE-2024-4577Known exploitedRansomwareCritical
PHP-CGI on Windows may misinterpret characters in command line arguments when certain code pages are configured, due to Windows 'Best-Fit' character replacement behaviour. An attacker who can control input to PHP-CGI can pass malicious options to the PHP binary, allowing them to reveal script source code or execute arbitrary PHP code on the server. The attacker needs the system to be running Apache with PHP-CGI on Windows using specific code page settings.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
- Added to KEV
- 12 Jun 2024
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Detail
PHP Group PHP. CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Weakness: CWE-78 (opens in a new tab)
Affected versions
- php php: from 8.1.0, before 8.1.29
- php php: from 8.2.0, before 8.2.20
- php php: from 8.3.0, before 8.3.8
- fedoraproject fedora: 39
- fedoraproject fedora: 40