CVE-2012-2311

N/A Unknown
Published: May 11, 2012 Modified: April 29, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://secunia.com/advisories/49014
Source: secalert@redhat.com
http://secunia.com/advisories/49085
Source: secalert@redhat.com
http://support.apple.com/kb/HT5501
Source: secalert@redhat.com
http://www.kb.cert.org/vuls/id/520827
Source: secalert@redhat.com
US Government Resource
http://www.php.net/ChangeLog-5.php#5.4.3
Source: secalert@redhat.com
https://bugs.php.net/bug.php?id=61910
Source: secalert@redhat.com
Vendor Advisory
http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
Source: af854a3a-2127-422b-91ae-364da2661108
http://marc.info/?l=bugtraq&m=134012830914727&w=2
Source: af854a3a-2127-422b-91ae-364da2661108
http://secunia.com/advisories/49014
Source: af854a3a-2127-422b-91ae-364da2661108
http://secunia.com/advisories/49085
Source: af854a3a-2127-422b-91ae-364da2661108
http://support.apple.com/kb/HT5501
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.debian.org/security/2012/dsa-2465
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.kb.cert.org/vuls/id/520827
Source: af854a3a-2127-422b-91ae-364da2661108
US Government Resource
http://www.php.net/ChangeLog-5.php#5.4.3
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.php.net/archive/2012.php#id2012-05-08-1
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.securitytracker.com/id?1027022
Source: af854a3a-2127-422b-91ae-364da2661108
https://bugs.php.net/bug.php?id=61910
Source: af854a3a-2127-422b-91ae-364da2661108
Vendor Advisory

34 reference(s) from NVD

Quick Stats

CVSS v3 Score
N/A / 10.0
EPSS (Exploit Probability)
68.8%
99th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

php