CVE-2012-2311
At a glance
- Source
- NVD
- EPSS
- EPSS 69.27 % · percentile 99 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- redhat
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-89 — Improper Neutralization of Special Elements used in an SQL Command
References
- http://marc.info/?l=bugtraq&m=134012830914727&w=2
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html
- http://www.securitytracker.com/id?1027022
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html
- https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff-fix-check.patch&revision=1336093719&display=1
- http://secunia.com/advisories/49014
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html
- https://bugs.php.net/bug.php?id=61910
- http://www.php.net/archive/2012.php#id2012-05-08-1
- http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
- http://support.apple.com/kb/HT5501
- https://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862
- http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
- http://www.kb.cert.org/vuls/id/520827
- http://www.debian.org/security/2012/dsa-2465
- http://secunia.com/advisories/49085
- http://www.php.net/ChangeLog-5.php#5.4.3
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2012-2304
- GCVE · GCVE-0-2012-2311
CERT-FR advisories
- CERTFR-2014-AVI-480 — Multiples vulnérabilités dans les produits Juniper · cert.ssi.gouv.fr
- CERTA-2012-AVI-512 — Multiples Vulnérabilités dans Apple OS X · cert.ssi.gouv.fr
- CERTA-2012-AVI-267 — Vulnérabilités dans PHP · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≤ 5.3.12cpe:2.3:a:php:php:1.0:*:*:*:*:*:*:*cpe:2.3:a:php:php:2.0:*:*:*:*:*:*:*cpe:2.3:a:php:php:2.0b10:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.1:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.2:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.3:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.4:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.5:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.6:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.7:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.8:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.9:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.10:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.11:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.12:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.13:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.14:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.15:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.16:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.17:*:*:*:*:*:*:*cpe:2.3:a:php:php:3.0.18:*:*:*:*:*:*:*cpe:2.3:a:php:php:4.0:beta_4_patch1:*:*:*:*:*:*cpe:2.3:a:php:php:4.0:beta1:*:*:*:*:*:*cpe:2.3:a:php:php:4.0:beta2:*:*:*:*:*:*cpe:2.3:a:php:php:4.0:beta3:*:*:*:*:*:*cpe:2.3:a:php:php:4.0:beta4:*:*:*:*:*:*cpe:2.3:a:php:php:4.0.0:*:*:*:*:*:*:*cpe:2.3:a:php:php:4.0.1:*:*:*:*:*:*:*cpe:2.3:a:php:php:4.0.2:*:*:*:*:*:*:*cpe:2.3:a:php:php:4.0.3:*:*:*:*:*:*:*cpe:2.3:a:php:php:4.0.4:*:*:*:*:*:*:*cpe:2.3:a:php:php:4.0.5:*:*:*:*:*:*:*cpe:2.3:a:php:php:4.0.6:*:*:*:*:*:*:*cpe:2.3:a:php:php:4.0.7:*:*:*:*:*:*:*cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:*cpe:2.3:a:php:php:4.1.1:*:*:*:*:*:*:*cpe:2.3:a:php:php:4.1.2:*:*:*:*:*:*:*cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*- +78 more
Affected products
| Product | Versions |
|---|---|
| affected n/a |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |