Red Hat Customer Portal

Skip to main content

CVE-2012-1823

Impact:
Critical
Public Date:
2012-05-03
Bugzilla:
818607: CVE-2012-1823 php: command line arguments injection when run in CGI mode (VU#520827)

The MITRE CVE dictionary describes this issue as:

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (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.

Find out more about CVE-2012-1823 from the MITRE CVE dictionary dictionary and NIST NVD.

Statement

This flaw did not affect the versions of PHP in Red Hat Enterprise Linux 3 or 4. Updates were released for Red Hat Enterprise Linux 5 and 6 (RHSA-2012:0546, RHSA-2012:0547), Red Hat Enterprise Linux 5.3 Long Life (RHSA-2012:0568), Red Hat Enterprise Linux 5.6, 6.0, and 6.1 Extended Update Support (RHSA-2012:0568, RHSA-2012:0569), and Red Hat Application Stack v2 (RHSA-2012:0570).

This flaw only affected PHP CGI configurations and it did not affect the default configuration in Red Hat Enterprise Linux 5 and 6 using the PHP module for Apache httpd to handle PHP scripts.

Note that this issue was not fixed completely the first time, which resulted in the assignment of additional related CVE identifiers - CVE-2012-2311, CVE-2012-2335, and CVE-2012-2336. Refer to the Red Hat CVE Database and the Red Hat Bugzilla for additional information on how those CVEs affect Red Hat products.

CVSS v2 metrics

NOTE: The following CVSS v2 metrics and score provided are preliminary and subject to review.

Base Score 6.8
Base Metrics AV:N/AC:M/Au:N/C:P/I:P/A:P
Access Vector Network
Access Complexity Medium
Authentication None
Confidentiality Impact Partial
Integrity Impact Partial
Availability Impact Partial

Find out more about Red Hat support for the Common Vulnerability Scoring System (CVSS).

Red Hat Security Errata

Platform Errata Release Date
Red Hat Application Stack v2 for Enterprise Linux (v.5) (php) RHSA-2012:0570 2012-05-11
Red Hat Enterprise Linux 6 (php) RHSA-2012:0546 2012-05-07
Red Hat Enterprise Linux 5 (php53) RHSA-2012:0547 2012-05-07
Red Hat Enterprise Linux 5 (php) RHSA-2012:0546 2012-05-07
Red Hat Enterprise Linux Server EUS (v. 6.1) (php) RHSA-2012:0568 2012-05-10
Red Hat Enterprise Linux Long Life (v. 5.3 server) (php) RHSA-2012:0568 2012-05-10
Red Hat Enterprise Linux Server EUS (v. 6.0) (php) RHSA-2012:0568 2012-05-10
Red Hat Enterprise Linux EUS (v. 5.6 server) (php) RHSA-2012:0568 2012-05-10
Red Hat Enterprise Linux EUS (v. 5.6 server) (php53) RHSA-2012:0569 2012-05-10

Affected Packages State

Platform Package State
Red Hat Enterprise Linux 4 php Not affected
Red Hat Enterprise Linux 3 php Not affected
Red Hat Application Stack v2 for Enterprise Linux (v.5) php Affected