CVE-2012-2311
highpriority · attend · 64EPSS 0.693 · 99 %ileexploit · functionalEURUUSEPSS · scored 2026-10-27
sapi/cgi/cgi_main.c in PHP before 5.3.13 and 5.4.x before 5.4.3, when configured as a CGI script (aka php-cgi), does not properly handle query strings that contain a %3D sequence but no = (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. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1823.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5.6–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (4)
Public proof-of-concept and weaponised exploit code.
- EDB-18834PHP 5.3.12/5.4.2 - CGI Argument Injection (Metasploit)functional · exploit_db
- EDB-18836PHP < 5.3.12 / < 5.4.2 - CGI Argument Injectionfunctional · exploit_db
- EDB-29290Apache + PHP < 5.3.12 / < 5.4.2 - cgi-bin Remote Code Executionfunctional · exploit_db
affected products (213)
Products and version ranges known to be affected.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (51)
External citations — patches, advisories, analysis.
- http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/cnnvd
- http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.htmlcnnvd
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.htmlcnnvd
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.htmlcnnvd
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.htmlcnnvd
- http://marc.info/?l=bugtraq&m=134012830914727&w=2cnnvd
- http://secunia.com/advisories/49014cnnvd
- http://secunia.com/advisories/49085cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan