CVE-2012-2311
Detail
Modified After Enrichment
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
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.
Metrics
β
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
Base
Score:
NVD assessment
not yet provided.
CVSS 2.0 Severity and Vector Strings:
Vector:
(AV:N/AC:L/Au:N/C:P/I:P/A:P)
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
| URL |
Source(s) |
Tag(s) |
|
http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
|
CVE, Inc., Red Hat |
|
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
|
CVE, Inc., Red Hat |
|
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html
|
CVE, Inc., Red Hat |
|
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html
|
CVE, Inc., Red Hat |
|
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html
|
CVE, Inc., Red Hat |
|
http://marc.info/?l=bugtraq&m=134012830914727&w=2
|
CVE, Inc., Red Hat |
|
http://secunia.com/advisories/49014
|
CVE, Inc., Red Hat |
|
http://secunia.com/advisories/49085
|
CVE, Inc., Red Hat |
|
http://support.apple.com/kb/HT5501
|
CVE, Inc., Red Hat |
|
http://www.debian.org/security/2012/dsa-2465
|
CVE, Inc., Red Hat |
|
http://www.kb.cert.org/vuls/id/520827
|
CVE, Inc., Red Hat |
US Government Resource
|
|
http://www.php.net/ChangeLog-5.php#5.4.3
|
CVE, Inc., Red Hat |
|
http://www.php.net/archive/2012.php#id2012-05-08-1
|
CVE, Inc., Red Hat |
|
http://www.securitytracker.com/id?1027022
|
CVE, Inc., Red Hat |
|
https://bugs.php.net/bug.php?id=61910
|
CVE, Inc., Red Hat |
Vendor Advisory
|
|
https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff-fix-check.patch&revision=1336093719&display=1
|
CVE, Inc., Red Hat |
|
https://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862
|
CVE, Inc., Red Hat |
Change History
9 change records found show changes
CVE Modified by Red Hat, Inc.
6/16/2026 7:41:20 PM
| Action |
Type |
Old Value |
New Value |
| Added |
Affected |
[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]
|
CVE Status Change
4/28/2026 9:13:23 PM
| Action |
Type |
Old Value |
New Value |
CVE Modified by CVE
11/20/2024 8:38:51 PM
| Action |
Type |
Old Value |
New Value |
| Added |
Reference |
http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
|
| Added |
Reference |
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
|
| Added |
Reference |
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html
|
| Added |
Reference |
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html
|
| Added |
Reference |
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html
|
| Added |
Reference |
http://marc.info/?l=bugtraq&m=134012830914727&w=2
|
| Added |
Reference |
http://marc.info/?l=bugtraq&m=134012830914727&w=2
|
| Added |
Reference |
http://secunia.com/advisories/49014
|
| Added |
Reference |
http://secunia.com/advisories/49085
|
| Added |
Reference |
http://support.apple.com/kb/HT5501
|
| Added |
Reference |
http://www.debian.org/security/2012/dsa-2465
|
| Added |
Reference |
http://www.kb.cert.org/vuls/id/520827
|
| Added |
Reference |
http://www.php.net/ChangeLog-5.php#5.4.3
|
| Added |
Reference |
http://www.php.net/archive/2012.php#id2012-05-08-1
|
| Added |
Reference |
http://www.securitytracker.com/id?1027022
|
| Added |
Reference |
https://bugs.php.net/bug.php?id=61910
|
| Added |
Reference |
https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff-fix-check.patch&revision=1336093719&display=1
|
| Added |
Reference |
https://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862
|
| Added |
Reference |
https://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862
|
CVE Modified by Red Hat, Inc.
5/13/2024 10:42:02 PM
| Action |
Type |
Old Value |
New Value |
CVE Modified by Red Hat, Inc.
11/06/2023 9:10:29 PM
| Action |
Type |
Old Value |
New Value |
| Changed |
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.
|
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.
|
CVE Modified by Red Hat, Inc.
2/12/2023 7:24:24 PM
| Action |
Type |
Old Value |
New Value |
| Changed |
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.
|
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.
|
CVE Modified by Red Hat, Inc.
1/17/2018 9:29:15 PM
| Action |
Type |
Old Value |
New Value |
| Added |
Reference |
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html [No Types Assigned]
|
| Added |
Reference |
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html [No Types Assigned]
|
| Added |
Reference |
http://www.debian.org/security/2012/dsa-2465 [No Types Assigned]
|
CVE Modified by Red Hat, Inc.
1/04/2018 9:29:32 PM
| Action |
Type |
Old Value |
New Value |
| Added |
Reference |
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html [No Types Assigned]
|
Initial CVE Analysis
5/11/2012 11:22:00 AM
| Action |
Type |
Old Value |
New Value |
Quick Info
CVE Dictionary Entry: CVE-2012-2311 NVD
Published Date: 05/11/2012 NVD
Last Modified: 06/16/2026
Source: Red Hat, Inc.
|