PHP QUERY_STRING parameters code execution
| php-query-string-code-execution (75371) |
Description:
PHP could allow a remote attacker to execute arbitrary code on the system, caused by an error when parsing QUERY_STRING parameters. An attacker could exploit this vulnerability to obtain sensitive information, execute arbitrary code on the system or cause a denial of service.
*CVSS:
| Base Score: | 7.5 |
| Access Vector: | Network |
| Access Complexity: | Low |
| Authentication: | None |
| Confidentiality Impact: | Partial |
| Integrity Impact: | Partial |
| Availability Impact: | Partial |
| Temporal Score: | 6.2 |
| Exploitability: | Functional |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Gain Access
Remedy:
Upgrade to the latest version of PHP, available from the PHP Web site. See References.
For other distributions:
Contact your vendor for patch or upgrade information.
References:
- Apple Article: HT5501: About the security content of OS X Mountain Lion v10.8.2, OS X Lion v10.7.5 and Security Update 2012-004.
- Eindbazen Web site: 03MAY2012 Eindbazen PHP-CGI advisory (CVE-2012-1823).
- IBM Security Bulletin 1620314: Lotus Foundations PHP Argument Command Injection (CVE-2012-1823).
- Offensive Security Exploit Database [05-05-2012]: PHP CGI Argument Injection Exploit.
- Packet Storm Web site: PHP-CGI Argument Injection Remote Code Execution.
- Packetstorm Security Website: PHP CGI Argument Injection.
- PHP Sec Bug #61910: VU#520827 - PHP-CGI query string parameter vulnerability.
- PHP Web Site: PHP 5.3.12 Released!.
- BID-53388: PHP 'php-cgi' Information Disclosure Vulnerability
- CVE-2012-1823: 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.
- DSA-2465: php5 -- several vulnerabilities
- OSVDB ID: 81633: PHP PHP-CGI Query String Parameter Injection Arbitrary Code Execution
- RHSA-2012-0546: Critical: php security update
- RHSA-2012-0547: Critical: php53 security update
- RHSA-2012-0568: Critical: php security update
- RHSA-2012-0569: Critical: php53 security update
- RHSA-2012-0570: Critical: php security update
- SA49014: PHP PHP-CGI QUERY_STRING Parameter Vulnerability
- SA51572: IBM Lotus Foundations Start Script Insertion and PHP Command Injection Vulnerabilities
- US-CERT VU#520827: PHP-CGI query string parameter vulnerability
Platforms Affected:
- Apple Mac OS X 10.6
- Apple Mac OS X Server 10.6
- IBM Lotus Foundations Start 1.2
- PHP PHP 5.3.12
- PHP PHP 5.4.2
- RedHat Enterprise Linux 5
- RedHat Enterprise Linux 5 Client Workstation
- RedHat Enterprise Linux 6 Server
- RedHat Enterprise Linux 6 Workstation
- RedHat Enterprise Linux Desktop 6
- RedHat Enterprise Linux EUS 5.6.z
- RedHat Enterprise Linux HPC Node 6
- RedHat Enterprise Linux Long Life 5.3
- RedHat Enterprise Linux Long Life 5.6
- RedHat Enterprise Linux Server EUS 6.0.z
- RedHat Enterprise Linux Server EUS 6.1.z
- RedHat RHEL Application Stack 2
Reported:
May 02, 2012
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
