🛡️ CVE-2024-4577
🔴 CVSS 9.8 — Critical ⚠️ Exploit Public CWE-78 NVD
9.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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.

Details

Severity CRITICAL
CVSS Score 9.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE CWE-78
Public Exploit ⚠️ Yes
Source NVD
Published 2024-06-09
Updated 2026-06-15
Modified 2025-11-03

Affected Packages

Software From version Fixed in
fedora
libphp
php
php-min

References

Mailing List, Third Party Advisory http://www.openwall.com/lists/oss-security/2024/06/07/1
Exploit, Third Party Advisory https://github.com/watchtowrlabs/CVE-2024-4577
Exploit, Third Party Advisory https://github.com/xcanwin/CVE-2024-4577-PHP-RCE
Exploit, Third Party Advisory https://isc.sans.edu/diary/30994
Mailing List, Third Party Advisory http://www.openwall.com/lists/oss-security/2024/06/07/1
Exploit, Third Party Advisory https://github.com/watchtowrlabs/CVE-2024-4577
Exploit, Third Party Advisory https://github.com/xcanwin/CVE-2024-4577-PHP-RCE
Exploit, Third Party Advisory https://isc.sans.edu/diary/30994

Similar Threats

Vulnerability Monitoring

Stay informed about vulnerabilities in your stack

BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.