RHSA-2012:0546
PHP is an HTML-embedded scripting language commonly used with the Apache HTTP Server. A flaw was found in the way the php-cgi executable processed command line arguments when running in CGI mode. A remote attacker could send a specially-crafted request to a PHP script that would result in the query string being parsed by php-cgi as command line options and arguments. This could lead to the disclosure of the script's source code or arbitrary code execution with the privileges of the PHP interpreter. (CVE-2012-1823) Red Hat is aware that a public exploit for this issue is available that allows remote code execution in affected PHP CGI configurations. This flaw does not affect the default configuration in Red Hat Enterprise Linux 5 and 6 using the PHP module for Apache httpd to handle PHP scripts. All php users should upgrade to these updated packages, which contain a backported patch to resolve this issue. After installing the updated packages, the httpd daemon must be restarted for the update to take effect.
Evidence and freshness
Last supporting evidence check: 2026-11-28T02:05:22.621Z UTC
Upstream Advisory
Affected Packages
php 5.1.6-34.el5_8
php 5.3.3-3.el6_2.8
php-bcmath 5.1.6-34.el5_8
php-mbstring 5.1.6-34.el5_8
php-bcmath 5.3.3-3.el6_2.8
php-cli 5.1.6-34.el5_8
php-cli 5.3.3-3.el6_2.8
php-common 5.1.6-34.el5_8
php-common 5.3.3-3.el6_2.8
php-dba 5.1.6-34.el5_8
php-dba 5.3.3-3.el6_2.8
php-devel 5.1.6-34.el5_8
php-devel 5.3.3-3.el6_2.8
php-embedded 5.3.3-3.el6_2.8
php-enchant 5.3.3-3.el6_2.8
php-gd 5.1.6-34.el5_8
php-gd 5.3.3-3.el6_2.8
php-imap 5.1.6-34.el5_8
php-imap 5.3.3-3.el6_2.8
php-intl 5.3.3-3.el6_2.8
php-ldap 5.1.6-34.el5_8
php-ldap 5.3.3-3.el6_2.8
php-mbstring 5.3.3-3.el6_2.8
php-mysql 5.1.6-34.el5_8
php-mysql 5.3.3-3.el6_2.8
php-ncurses 5.1.6-34.el5_8
php-odbc 5.1.6-34.el5_8
php-odbc 5.3.3-3.el6_2.8
php-pdo 5.1.6-34.el5_8
php-pdo 5.3.3-3.el6_2.8
php-pgsql 5.1.6-34.el5_8
php-pgsql 5.3.3-3.el6_2.8
php-process 5.3.3-3.el6_2.8
php-pspell 5.3.3-3.el6_2.8
php-recode 5.3.3-3.el6_2.8
php-snmp 5.1.6-34.el5_8
php-snmp 5.3.3-3.el6_2.8
php-soap 5.1.6-34.el5_8
php-soap 5.3.3-3.el6_2.8
php-tidy 5.3.3-3.el6_2.8
php-xml 5.1.6-34.el5_8
php-xml 5.3.3-3.el6_2.8
php-xmlrpc 5.1.6-34.el5_8
php-xmlrpc 5.3.3-3.el6_2.8
php-zts 5.3.3-3.el6_2.8