CVE-2012-1823
CRITICALCISA KEV14 Public PoCssapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case.
CVSS Score
9.8
FIRST EPSS
100.0%
Observed Hosts
6,382
Published
2012-05-11
Remediation Guidance
sapi/cgi/cgi_main.c in PHP, when configured as a CGI script, does not properly handle query strings, which allows remote attackers to execute arbitrary code.
Top Exposed Countries
- US497
- JP198
- CN189
- KR128
- TW61
- RU56
- DE55
- IT52
Top Exposed Ports
- 80 / tcp998
- 443 / tcp814
- 21 / tcp106
- 8443 / tcp96
- 6379 / tcp76
- 22 / tcp72
- 8139 / tcp69
- 27017 / tcp64
Observed Software
- Apache httpd1,385
- nginx98
- Apache53
- lighttpd48
- MongoDB36
- Microsoft IIS httpd34