⚠ Actively exploited in ransomware campaigns
This vulnerability is on the CISA Known Exploited Vulnerabilities list and has been used in known ransomware attacks. CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.. Due date: 2024-07-03.
CVE-2024-4577 — OS Command Injection in Group PHP
Severity
9.8CRITICALNVD
EPSS
94.4%
top 0.03%
CISA KEV
KEVRansomware
Added 2024-06-12
Due 2024-07-03
Exploit
Exploited in wild
Active exploitation observed
Affected products
Timeline
PublishedJun 9
KEV addedJun 12
KEV dueJul 3
Latest updateJun 15
CISA Required Action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9
Affected Packages2 packages
Also affects: Fedora 39, 40
Patches
🔴Vulnerability Details
3💥Exploits & PoCs
2Nuclei▶
PHP CGI - Argument Injection
🔍Detection Rules
3📋Vendor Advisories
6🕵️Threat Intelligence
10Greynoiseio▶
GreyNoise Detects Mass Exploitation of Critical PHP-CGI Vulnerability (CVE-2024-4577), Signaling Broad Campaign↗2025-03-07