PHP 5.5.x < 5.5.7 OpenSSL openssl_x509_parse() Memory Corruption

high Nessus Plugin ID 71428

Synopsis

The remote web server uses a version of PHP that is potentially affected by a memory corruption vulnerability.

Description

According to its banner, the version of PHP 5.5.x installed on the remote host is a version prior to 5.5.7. It is, therefore, potentially affected by a memory corruption flaw in the way the openssl_x509_parse() function of the PHP OpenSSL extension parsed X.509 certificates. A remote attacker could use this flaw to provide a malicious, self-signed certificate or a certificate signed by a trusted authority to a PHP application using the aforementioned function. This could cause the application to crash or possibly allow the attacker to execute arbitrary code with the privileges of the user running the PHP interpreter.

Note that this plugin does not attempt to exploit the vulnerability, but instead relies only on PHP's self-reported version number.

Solution

Upgrade to PHP version 5.5.7 or later.

See Also

http://www.php.net/ChangeLog-5.php#5.5.7

https://seclists.org/fulldisclosure/2013/Dec/96

https://bugzilla.redhat.com/show_bug.cgi?id=1036830

Plugin Details

Severity: High

ID: 71428

File Name: php_5_5_7.nasl

Version: 1.12

Type: remote

Family: CGI abuses

Published: 12/14/2013

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

CVSS Score Source: CVE-2013-6420

Vulnerability Information

CPE: cpe:/a:php:php

Required KB Items: www/PHP

Exploit Available: true

Exploit Ease: No exploit is required

Patch Publication Date: 12/12/2013

Vulnerability Publication Date: 12/2/2013

Reference Information

CVE: CVE-2013-6420

BID: 64225