{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-4577","published":"2024-06-09T20:15:09.550000Z","last_modified":"2026-06-17T08:02:11.493000Z","status":"Analyzed","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-78"],"cpes":[{"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","part":"a","vendor":"php","product":"php","version_start_including":"8.1.0","version_end_excluding":"8.1.29"},{"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","part":"a","vendor":"php","product":"php","version_start_including":"8.2.0","version_end_excluding":"8.2.20"},{"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","part":"a","vendor":"php","product":"php","version_start_including":"8.3.0","version_end_excluding":"8.3.8"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"39"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"40"}],"cpes_truncated":false,"vendors":["php","fedoraproject"],"products":["php/php","fedoraproject/fedora"],"ssvc":{"exploitation":"active","automatable":"yes","technical_impact":"total"},"kev":{"date_added":"2024-06-12","due_date":"2024-07-03","ransomware":true,"forensic_triage":false,"cwes":["CWE-78"]},"epss":{"score":0.94815,"percentile":0.9991,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"web","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":98,"links":{"html_es":"/es/cve/CVE-2024-4577/","html_en":"/en/cve/CVE-2024-4577/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-4577","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-4577"},"untrusted":{"vendor_name":"PHP Group","product_name":"PHP","desc_en":"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.","affected":[{"untrusted_vendor":"PHP Group","untrusted_product":"PHP","versions":[]},{"untrusted_vendor":"php_group","untrusted_product":"php","versions":[]}],"kev":{"vendor":"PHP Group","product":"PHP","name":"PHP-CGI OS Command Injection Vulnerability","desc":"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.","action":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","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"},"ai":{"model":"us.anthropic.claude-haiku-4-5-20251001-v1:0","prompt_version":"2","input_hash":"496b2ee5172e94c3b8e72e64729f907a","generated":"2026-11-26T18:40:09.422655Z","es":{"untrusted_title":"Inyección de comandos del sistema operativo en PHP-CGI en Windows","untrusted_summary":"PHP versiones 8.1 (antes de 8.1.29), 8.2 (antes de 8.2.20) y 8.3 (antes de 8.3.8) en Windows con Apache y PHP-CGI son vulnerables a inyección de comandos del sistema operativo. Un atacante sin autenticación puede explotar el comportamiento \"Best-Fit\" de ciertas páginas de códigos de Windows para pasar opciones maliciosas al binario de PHP, permitiendo revelar código fuente o ejecutar código PHP arbitrario. CISA confirmó esta vulnerabilidad como explotada activamente."},"en":{"untrusted_title":"OS Command Injection in PHP-CGI on Windows","untrusted_summary":"PHP versions 8.1 (before 8.1.29), 8.2 (before 8.2.20), and 8.3 (before 8.3.8) on Windows with Apache and PHP-CGI are vulnerable to OS command injection. An unauthenticated attacker can exploit Windows \"Best-Fit\" code page behavior to pass malicious options to the PHP binary, allowing source code disclosure or arbitrary PHP code execution. CISA confirmed this vulnerability as actively exploited."},"remediation":{"status":"fix","fixed_versions":["8.1.29","8.2.20","8.3.8"],"untrusted_action_es":"Actualiza PHP a versión 8.1.29, 8.2.20, 8.3.8 o superior según tu rama de versión. Si usas PHP-CGI en Windows con Apache, aplica la actualización inmediatamente.","untrusted_action_en":"Update PHP to version 8.1.29, 8.2.20, 8.3.8 or later depending on your version branch. If you use PHP-CGI on Windows with Apache, apply the update immediately.","vendor_url":"https://www.php.net/ChangeLog-8.php#8.1.29"},"reviewed":false},"references":[{"url":"http://www.openwall.com/lists/oss-security/2024/06/07/1","tags":["Mailing List","Third Party Advisory"]},{"url":"https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/","tags":["Exploit","Press/Media Coverage","Third Party Advisory"]},{"url":"https://blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.html","tags":["Third Party Advisory"]},{"url":"https://cert.be/en/advisory/warning-php-remote-code-execution-patch-immediately","tags":["Third Party Advisory"]},{"url":"https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/11whoami99/CVE-2024-4577","tags":["Exploit"]},{"url":"https://github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jv","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/rapid7/metasploit-framework/pull/19247","tags":["Exploit","Issue Tracking","Patch"]},{"url":"https://github.com/watchtowrlabs/CVE-2024-4577","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/xcanwin/CVE-2024-4577-PHP-RCE","tags":["Exploit","Third Party Advisory"]},{"url":"https://isc.sans.edu/diary/30994","tags":["Exploit","Third Party Advisory"]},{"url":"https://labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/","tags":["Exploit","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","tags":["Mailing List"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/","tags":["Mailing List"]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0008/","tags":["Third Party Advisory"]},{"url":"https://www.imperva.com/blog/imperva-protects-against-critical-php-vulnerability-cve-2024-4577/","tags":["Third Party Advisory"]},{"url":"https://www.php.net/ChangeLog-8.php#8.1.29","tags":["Release Notes"]},{"url":"https://www.php.net/ChangeLog-8.php#8.2.20","tags":["Release Notes"]},{"url":"https://www.php.net/ChangeLog-8.php#8.3.8","tags":["Release Notes"]},{"url":"https://blog.talosintelligence.com/new-persistent-attacks-japan/","tags":["Exploit","Third Party Advisory"]},{"url":"https://www.vicarius.io/vsociety/posts/php-cgi-argument-injection-to-rce-cve-2024-4577","tags":["Exploit","Third Party Advisory"]},{"url":"https://www.vicarius.io/vsociety/posts/php-cgi-os-command-injection-vulnerability-cve-2024-4577","tags":["Exploit","Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-4577","tags":["US Government Resource"]}]}}