Unscored severity · published May 11, 2012
CVE-2012-2311
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…
–
CVSS
69.3%
EPSS
No
On KEV
Description
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)69.3% · higher than 99% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PH
PHP · PHP
through 5.3.12; 1.0; 2.0; 2.0b10; 3.0; 3.0.1; +34 more · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-2311
CVE.org
https://www.cve.org/CVERecord?id=CVE-2012-2311
eindbazen.net
http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
lists.apple.com
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
lists.opensuse.org
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html
lists.opensuse.org
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html
lists.opensuse.org
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html
marc.info
http://marc.info/?l=bugtraq&m=134012830914727&w=2
More from PHP
9.8
CVE-2026-109618
RCE via OOM corruption
9.8
CVE-2024-4577
Argument Injection in PHP-CGI
9.8
CVE-2019-11043
Underflow in PHP-FPM can lead to RCE
9.8
CVE-2016-10033
The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute…
9.8
CVE-2012-1823
PHP-CGI Query String Parameter Vulnerability
