Patch todayExploited in the wild (CISA KEV)CISA due 2024-07-03
CVE-2024-4577: PHP-CGI OS Command Injection Vulnerability
What
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.
Apply the vendor fix. CISA's required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.Vendor advisory
Restart php-fpm (or your web server) after upgrading so workers load the new binary.
Using distro packages? Distros backport fixes under their own version numbers. Check your distro's status for CVE-2024-4577:Debian · Ubuntu · Red Hat · Alpine
This is exploited in the wild: after patching, check exposed systems for signs of compromise.
Deadline: CISA's federal due date is 2024-07-03. Treat it as the latest reasonable date for everyone else.