Skip to content

CVE-2024-4577 in PHP

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.

CISA listing

Vendor
PHP Group
Product
PHP
CISA name
PHP-CGI OS Command Injection Vulnerability
Listed by CISA
2024-06-12
Ransomware use
Known to be used in ransomware campaigns
EPSS
100.0% as of 2026-11-18

What the probe looks like in your access log

Sample access log line. Demo data.

203.0.113.7 - - [19/Nov/2026:09:14:02 +0000] "POST /php-cgi/php-cgi.exe HTTP/1.1" 404 153

Search your log for the method and path

grep -Fi '"POST /php-cgi/php-cgi.exe' access.log

Patch the CVE. camada finds and blocks the clients probing for it, from the next review on. If you run PHP, requests to this path can be normal, so check your version against the advisory.

Check your own log for these probes in your browser.