|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.
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
Find out more about Red Hat support for the Common Vulnerability Scoring System (CVSS).
Red Hat security errata
|Red Hat Application Stack v2 for Enterprise Linux (v.5) (php)||RHSA-2012:0570||May 11, 2012|
|Red Hat Enterprise Linux EUS (v. 5.6 server) (php)||RHSA-2012:0568||May 10, 2012|
|Red Hat Enterprise Linux EUS (v. 5.6 server) (php53)||RHSA-2012:0569||May 10, 2012|
|Red Hat Enterprise Linux Long Life (v. 5.3 server) (php)||RHSA-2012:0568||May 10, 2012|
|Red Hat Enterprise Linux Server EUS (v. 6.0) (php)||RHSA-2012:0568||May 10, 2012|
|Red Hat Enterprise Linux Server EUS (v. 6.1) (php)||RHSA-2012:0568||May 10, 2012|
|Red Hat Enterprise Linux version 5 (php)||RHSA-2012:0546||May 07, 2012|
|Red Hat Enterprise Linux version 5 (php53)||RHSA-2012:0547||May 07, 2012|
|Red Hat Enterprise Linux version 6 (php)||RHSA-2012:0546||May 07, 2012|
This page is generated automatically and has not been checked for errors or omissions.
For clarification or corrections please contact the Red Hat Security Response Team.