9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
7.2 High
AI Score
Confidence
Low
0.967 High
EPSS
Percentile
99.7%
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.
Recent assessments:
sfewer-r7 at June 10, 2024 5:00pm UTC reported:
I have rated the attacker value as high, as if the requirement to exploitation are met the attacker can get remote unauthenticated RCE on the target Windows server. I have rated the Exploitability as Low as there are several prerequisites for a target to be vulnerable, specifically.
Target must be a web server running on a Windows system. A Web server on Linux for example can not be vulnerable. Currently I have only seen vulnerable Apache based configurations. I could not get IIS to be vulnerable during testing.
Target webserver must expose PHP in CGI mode (as opposed to FastCGI mode which is generally more common), or expose the CGI binary directly through an Apache ScriptAlias
directive.
The target Windows OS must have its system locale set to either Japanese (Code page 932) or Chinese (Code pages 950 or 936). For this reason most systems that meet the other requirements will not be exploitable, as the systems locale must use a code page that can cause the vulnerability.
It is worth noting that XAMPP for Windows is in a vulnerable configuration by default, however the target Windows system XAMPP is running on still must meet the locale requirement of either Japanese or Chinese as mentioned above.
Assessed Attacker Value: 4
Assessed Attacker Value: 4Assessed Attacker Value: 2
www.openwall.com/lists/oss-security/2024/06/07/1
arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/
blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.html
cert.be/en/advisory/warning-php-remote-code-execution-patch-immediately
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-4577
devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/
github.com/0x20c/CVE-2024-4577-nuclei
github.com/11whoami99/CVE-2024-4577
github.com/ATDanny/CVE-2024-4577
github.com/Chocapikk/CVE-2024-4577
github.com/gotr00t0day/CVE-2024-4577
github.com/manuelinfosec/CVE-2024-4577
github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jv
github.com/rapid7/metasploit-framework/pull/19247
github.com/Sh0ckFR/CVE-2024-4577
github.com/sug4r-wr41th/CVE-2024-4577
github.com/VictorShem/CVE-2024-4577
github.com/watchtowrlabs/CVE-2024-4577
github.com/xcanwin/CVE-2024-4577-PHP-RCE
github.com/ZephrFish/CVE-2024-4577-PoC
isc.sans.edu/diary/30994
labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/
lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/
lists.fedoraproject.org/archives/list/[email protected]/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/
security.netapp.com/advisory/ntap-20240621-0008/
www.imperva.com/blog/imperva-protects-against-critical-php-vulnerability-cve-2024-4577/
www.php.net/ChangeLog-8.php#8.1.29
www.php.net/ChangeLog-8.php#8.2.20
www.php.net/ChangeLog-8.php#8.3.8
9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
7.2 High
AI Score
Confidence
Low
0.967 High
EPSS
Percentile
99.7%