PHP Group · PHP · CWE-78 · published 2024-06-09
CVE-2024-4577PHP-CGI OS Command Injection Vulnerability
Patch today Known exploited and used in ransomware campaigns.
CVE-2024-4577 is actively exploited in the wild: CISA added it to the Known Exploited Vulnerabilities catalog on 2024-06-12, and it is known to be used in ransomware campaigns. EPSS estimates a 100% chance of exploitation in the next 30 days, higher than 99% of all CVEs. This PHP vulnerability: CVSS 9.8 (v3.1), attacks can be automated, a successful attack gives total control of the component. CISA’s required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. US federal agencies must remediate by 2024-07-03. Patch today.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. (federal due date 2024-07-03)
Linux distribution packages
If you run the distro’s package rather than an upstream build, this is the version to look for.
| Distro | Release | Package | Status |
|---|---|---|---|
| Debian | 12 bookworm | php8.2 | Not affected |
| Red Hat Enterprise Linux | RHEL 10 | php | Not affected |
| RHEL 9 | php | Not affected | |
| RHEL 8 | php | Not affected | |
| RHEL 7 | php | Not affected | |
| RHEL 6 | php | Not affected |
From the Debian Security Tracker, Ubuntu security notices (CC BY-SA 4.0) and Red Hat Security Data (CC BY 4.0). Check the distro link before acting.
Patch events
Language runtimePHP
-CGI OS Command InjectionCVE-2024-4577
Why: Known exploited and used in ransomware campaigns.
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | Yes, added 2024-06-12 | CISA KEV |
| Ransomware use | Known | CISA KEV |
| EPSS (30-day exploitation probability) | 100% (100th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 9.8 (v3.1)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CNA / CISA ADP |
| SSVC exploitation | active | CISA Vulnrichment |
| SSVC automatable | Yes | CISA Vulnrichment |
| SSVC technical impact | total | CISA Vulnrichment |
Weakness: CWE-78: Improper Neutralization of Special Elements used in an OS Command
More from this vendor: all PHP Group vulnerabilities · recent KEV additions
Affected versions (from the CVE record)#
- PHP Group PHP
8.1.*to before8.1.29(affected)8.2.*to before8.2.20(affected)8.3.*to before8.3.8(affected)
Description (from the CVE record)#
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.
Quoted from the CVE Program record.