PHP Group · PHP
CVE-2024-4577
PHP-CGI OS Command Injection Vulnerability
CISA KEV record
- CISA date added
- 2024-06-12
- CISA due date
- 2024-07-03
- Known ransomware use
- Known
NVD risk context
9.8 CRITICAL
CVSS is a technical severity score. CISA’s KEV status remains the evidence that this vulnerability is known to be exploited.
Description
PHP, specifically Windows-based PHP used in CGI mode, contains an OS command injection vulnerability that allows for arbitrary code execution. This vulnerability is a patch bypass for CVE-2012-1823.
Required action
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
NVD reference index
Vendor and remediation references
NVD has tagged these sources as vendor advisories, patches, mitigations, or release notes.
- https://github.com/rapid7/metasploit-framework/pull/19247 ↗
- https://www.php.net/ChangeLog-8.php#8.1.29 ↗
- https://www.php.net/ChangeLog-8.php#8.2.20 ↗
- https://www.php.net/ChangeLog-8.php#8.3.8 ↗
Other NVD references (19)
- http://www.openwall.com/lists/oss-security/2024/06/07/1 ↗
- https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/ ↗
- https://blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.html ↗
- https://cert.be/en/advisory/warning-php-remote-code-execution-patch-immediately ↗
- https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/ ↗
- https://github.com/11whoami99/CVE-2024-4577 ↗
- https://github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jv ↗
- https://github.com/watchtowrlabs/CVE-2024-4577 ↗
- https://github.com/xcanwin/CVE-2024-4577-PHP-RCE ↗
- https://isc.sans.edu/diary/30994 ↗
- https://labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/ ↗
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ ↗
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/ ↗
- https://security.netapp.com/advisory/ntap-20240621-0008/ ↗
- https://www.imperva.com/blog/imperva-protects-against-critical-php-vulnerability-cve-2024-4577/ ↗
- https://blog.talosintelligence.com/new-persistent-attacks-japan/ ↗
- https://www.vicarius.io/vsociety/posts/php-cgi-argument-injection-to-rce-cve-2024-4577 ↗
- https://www.vicarius.io/vsociety/posts/php-cgi-os-command-injection-vulnerability-cve-2024-4577 ↗
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-4577 ↗
MITRE CWE context
CWE classification
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
View official MITRE CWE details ↗NVD record timing
NVD record timeline
These dates describe NVD’s record, not CISA’s KEV addition or remediation due date.
- NVD published
- Jun 09, 2024, 08:15 PM UTC When NVD first published this CVE record.
- NVD last updated
- Jun 17, 2026, 08:02 AM UTC When NVD last changed its analysis or record data.
Advanced: view the technical CVSS vector
This standardized code is intended for security tools and technical analysts. The plain-language risk summary above explains its main points.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA notes
This vulnerability affects a common open-source component, third-party library, or a protocol used by different products. Please check with specific vendors for information on patching status. For more information, please see: https://www.php.net/ChangeLog-8.php#; https://nvd.nist.gov/vuln/detail/CVE-2024-4577