{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-4577","id":"CVE-2024-4577","title":"Argument Injection in PHP-CGI","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 bina","descriptionLong":"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.","published":"2024-06-09T19:42:36.464Z","updated":"2026-10-28T02:31:03.234315892Z","reserved":"2024-05-06T22:21:01.742Z","status":"Analyzed","rejected":false,"assigner":"php","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"php"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"php"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"php.net"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"}],"rating":"critical","products":["PHP Group PHP"],"affectedProducts":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"affected","versions":[{"lessThan":"8.1.29","status":"affected","version":"8.1.*","versionType":"semver"},{"lessThan":"8.2.20","status":"affected","version":"8.2.*","versionType":"semver"},{"lessThan":"8.3.8","status":"affected","version":"8.3.*","versionType":"semver"}],"platforms":["Windows"]}],"packages":[],"cwes":["CWE-78"],"aliases":["BIT-libphp-2024-4577","BIT-php-2024-4577","BIT-php-min-2024-4577","GHSA-3qgc-jrrr-25jv"],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jv","tags":["x_transferred","Exploit","Third Party Advisory","advisory"]},{"url":"https://blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.html","tags":["x_transferred","Third Party Advisory","article"]},{"url":"https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/","tags":["x_transferred","Exploit","Third Party Advisory","article"]},{"url":"https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/","tags":["x_transferred","Exploit","Press/Media Coverage","Third Party Advisory","web"]},{"url":"https://www.imperva.com/blog/imperva-protects-against-critical-php-vulnerability-cve-2024-4577/","tags":["x_transferred","Third Party Advisory","article"]},{"url":"https://github.com/11whoami99/CVE-2024-4577","tags":["x_transferred","Exploit","package"]},{"url":"https://github.com/xcanwin/CVE-2024-4577-PHP-RCE","tags":["x_transferred","Exploit","Third Party Advisory","package"]},{"url":"https://github.com/rapid7/metasploit-framework/pull/19247","tags":["x_transferred","Exploit","Issue Tracking","Patch","fix"]},{"url":"https://labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/watchtowrlabs/CVE-2024-4577","tags":["x_transferred","Exploit","Third Party Advisory","package"]},{"url":"https://www.php.net/ChangeLog-8.php#8.1.29","tags":["x_transferred","Release Notes","web"]},{"url":"https://www.php.net/ChangeLog-8.php#8.2.20","tags":["x_transferred","Release Notes","web"]},{"url":"https://www.php.net/ChangeLog-8.php#8.3.8","tags":["x_transferred","Release Notes","web"]},{"url":"https://cert.be/en/advisory/warning-php-remote-code-execution-patch-immediately","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://isc.sans.edu/diary/30994","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2024/06/07/1","tags":["x_transferred","Mailing List","Third Party Advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","tags":["x_transferred","Mailing List","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/","tags":["x_transferred","Mailing List","web"]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0008/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-4577","tags":["government-resource","US Government Resource","web"]},{"url":"https://www.vicarius.io/vsociety/posts/php-cgi-os-command-injection-vulnerability-cve-2024-4577","tags":["Exploit","Third Party Advisory","web"]},{"url":"https://www.vicarius.io/vsociety/posts/php-cgi-argument-injection-to-rce-cve-2024-4577","tags":["Exploit","Third Party Advisory","web"]},{"url":"https://blog.talosintelligence.com/new-persistent-attacks-japan/","tags":["Exploit","Third Party Advisory","article"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4577.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4577","tags":["advisory"]},{"url":"https://github.com/php/php-src","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":true,"kevAdded":"2024-06-12","kevDue":"2024-07-03","kevEntry":{"cveID":"CVE-2024-4577","vendorProject":"PHP Group","product":"PHP","vulnerabilityName":"PHP-CGI OS Command Injection Vulnerability","dateAdded":"2024-06-12","shortDescription":"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.","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","dueDate":"2024-07-03","knownRansomwareCampaignUse":"Known","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","cwes":["CWE-78"]},"ssvc":{"exploitation":"active","automatable":"yes","technicalImpact":"total"},"epss":0.99987,"epssPercentile":0.99984,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-4577","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4577","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-4577","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2024-06-12"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-4577","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["Exploited in the wild (CISA KEV)","EPSS 100% with CVSS 9.8"],"attention":null}