CVE-2012-1823
CRITICALsapi/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,…
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Description
sapi/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.
Affected Products
mac os xappledebian linuxdebianfedorafedoraprojecthp-uxhpopensuseopensusephpphpResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Apache + PHP < 5.3.12 / < 5.4.2 - cgi-bin Remote Code Execution
by kingcope · Oct 29, 2013
PHP < 5.3.12 / < 5.4.2 - CGI Argument Injection
by rayh4c · May 5, 2012
Apache + PHP < 5.3.12 / < 5.4.2 - Remote Code Execution + Scanner
by noptrix · Oct 31, 2013
PHP 5.3.12/5.4.2 - CGI Argument Injection (Metasploit)
by Metasploit · May 4, 2012
Frequently Asked Questions
Is CVE-2012-1823 in your stack?
O3 detects CVE-2012-1823 across dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.