CentOS 5 / 6 : php (CESA-2012:0546)

high Nessus Plugin ID 59021

Synopsis

The remote CentOS host is missing one or more security updates.

Description

Updated php packages that fix one security issue are now available for Red Hat Enterprise Linux 5 and 6.

The Red Hat Security Response Team has rated this update as having critical security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section.

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.

Solution

Update the affected php packages.

See Also

http://www.nessus.org/u?b0fae3d8

http://www.nessus.org/u?e175f160

Plugin Details

Severity: High

ID: 59021

File Name: centos_RHSA-2012-0546.nasl

Version: 1.19

Type: local

Agent: unix

Published: 5/8/2012

Updated: 3/28/2022

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment Agent, Agentless Assessment, Nessus

Risk Information

VPR

Risk Factor: Critical

Score: 9.0

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2012-1823

Vulnerability Information

CPE: p-cpe:/a:centos:centos:php-ldap, p-cpe:/a:centos:centos:php-zts, p-cpe:/a:centos:centos:php-bcmath, p-cpe:/a:centos:centos:php-soap, p-cpe:/a:centos:centos:php-xmlrpc, cpe:/o:centos:centos:5, p-cpe:/a:centos:centos:php-dba, p-cpe:/a:centos:centos:php-gd, p-cpe:/a:centos:centos:php-recode, p-cpe:/a:centos:centos:php-pspell, p-cpe:/a:centos:centos:php-embedded, p-cpe:/a:centos:centos:php-xml, p-cpe:/a:centos:centos:php-imap, p-cpe:/a:centos:centos:php-devel, p-cpe:/a:centos:centos:php-pgsql, cpe:/o:centos:centos:6, p-cpe:/a:centos:centos:php-snmp, p-cpe:/a:centos:centos:php-ncurses, p-cpe:/a:centos:centos:php-mbstring, p-cpe:/a:centos:centos:php-mysql, p-cpe:/a:centos:centos:php, p-cpe:/a:centos:centos:php-odbc, p-cpe:/a:centos:centos:php-pdo, p-cpe:/a:centos:centos:php-cli, p-cpe:/a:centos:centos:php-process, p-cpe:/a:centos:centos:php-tidy, p-cpe:/a:centos:centos:php-intl, p-cpe:/a:centos:centos:php-common, p-cpe:/a:centos:centos:php-enchant

Required KB Items: Host/local_checks_enabled, Host/CentOS/release, Host/CentOS/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/7/2012

Vulnerability Publication Date: 5/11/2012

CISA Known Exploited Vulnerability Due Dates: 4/15/2022

Exploitable With

CANVAS (CANVAS)

Core Impact

Metasploit (PHP CGI Argument Injection)

Reference Information

CVE: CVE-2012-1823

BID: 53388

RHSA: 2012:0546