CVE-2012-2311

CVSS V2 High 7.5 CVSS V3 None
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.
Overview
  • CVE ID
  • CVE-2012-2311
  • Assigner
  • secalert@redhat.com
  • Vulnerability Status
  • Modified
  • Published Version
  • 2012-05-11T10:15:48
  • Last Modified Date
  • 2023-02-13T00:24:21
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* 1 OR 5.3.12
cpe:2.3:a:php:php:1.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:2.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:2.0b10:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.1:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.2:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.3:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.4:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.5:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.6:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.7:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.8:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.9:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.10:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.11:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.12:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.13:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.14:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.15:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.16:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.17:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:3.0.18:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0:beta_4_patch1:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0:beta1:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0:beta2:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0:beta3:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0:beta4:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0.1:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0.2:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0.3:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0.4:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0.5:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0.6:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.0.7:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.1.1:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.1.2:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.2.1:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.2.2:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.2.3:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.3.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.3.1:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.3.2:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.3.3:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.3.4:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.3.5:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.3.6:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.3.7:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.3.8:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.3.9:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.3.10:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.3.11:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.4.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.4.1:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.4.2:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.4.3:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.4.4:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.4.5:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.4.6:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.4.7:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.4.8:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:4.4.9:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.0:beta1:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.0:beta2:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.0:beta3:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.0:beta4:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.0:rc1:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.0:rc2:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.0:rc3:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.1:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.2:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.3:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.4:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.0.5:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.1.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.1.1:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.1.2:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.1.3:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.1.4:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.1.5:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.1.6:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.1:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.2:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.3:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.4:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.5:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.6:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.7:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.8:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.9:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.10:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.11:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.12:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.13:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.14:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.15:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.16:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.2.17:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.3.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.3.1:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.3.2:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.3.3:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.3.4:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.3.5:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.3.6:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.3.7:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.3.8:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.3.9:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.3.10:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.3.11:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.4.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.4.0:beta2:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.4.1:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:php:php:5.4.2:*:*:*:*:*:*:* 0 OR
CVSS Version 2
  • Version
  • 2.0
  • Vector String
  • AV:N/AC:L/Au:N/C:P/I:P/A:P
  • Access Vector
  • NETWORK
  • Access Compatibility
  • LOW
  • Authentication
  • NONE
  • Confidentiality Impact
  • PARTIAL
  • Integrity Impact
  • PARTIAL
  • Availability Impact
  • PARTIAL
  • Base Score
  • 7.5
  • Severity
  • HIGH
  • Exploitability Score
  • 10
  • Impact Score
  • 6.4
History
Created Old Value New Value Data Type Notes
2022-05-10 18:49:43 Added to TrackCVE
2023-02-13 01:03:49 2023-02-13T00:24:21 CVE Modified Date updated
2023-02-13 01:03:49 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. Description updated