CVE-2024-4577
Argument Injection in PHP-CGI
9.8
CRITICAL
CVSS 3.1
⚠ KEVEPSS 94.4%
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.
How to fix CVE-2024-4577
To remediate CVE-2024-4577, upgrade the affected package to a fixed version below.
- —upgrade to 8.1.29 or later
- —upgrade to 8.1.29 or later
- —upgrade to 8.1.29 or later
Is CVE-2024-4577 being exploited?
Yes — CVE-2024-4577 is on the CISA Known Exploited Vulnerabilities (KEV) catalog. Patch immediately.
Affected packages (3)
- from 0, < 8.1.29, >= 8.2.0, < 8.2.20, >= 8.3.0, < 8.3.8
- from 0, < 8.1.29, >= 8.2.0, < 8.2.20, >= 8.3.0, < 8.3.8
- from 0, < 8.1.29, >= 8.2.0, < 8.2.20, >= 8.3.0, < 8.3.8
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (24)
- WEBarstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/
- WEBblog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.html
- WEBblog.talosintelligence.com/new-persistent-attacks-japan/
- WEBcert.be/en/advisory/warning-php-remote-code-execution-patch-immediately