SQL Injection in PHP
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 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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v2 metric
CVSS v2 base score 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS: 0.693 (99.4th percentile), scored .
High probability of exploitation in the next 30 days — patch promptly. 99th percentile — 99.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.693 · newest: 0.693 · change: 0.000
Affected products
- PHP — versions 1.0, 2.0, 2.0b10
Weakness classification (CWE)
Public proof-of-concept exploits
References
- marc.info/ (vendor-advisory)
- lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html (vendor-advisory)
- www.securitytracker.com/id (vdb-entry)
- lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html (vendor-advisory)
- bugs.php.net/patch-display.php
- secunia.com/advisories/49014 (third-party-advisory)
- lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html (vendor-advisory)
- bugs.php.net/bug.php (Vendor Advisory)
- www.php.net/archive/2012.php
- lists.apple.com/archives/security-announce/2012/Sep/msg00004.html (vendor-advisory)
Frequently asked questions
- What is CVE-2012-2311?
- CVE-2012-2311 is a vulnerability in PHP, classified under SQL Injection. Published 2012-05-11.
- Is CVE-2012-2311 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.