PHP < 5.2.6 Multiple Vulnerabilities

high Nessus Plugin ID 32123
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

The remote web server uses a version of PHP that is affected by multiple flaws.

Description

According to its banner, the version of PHP installed on the remote host is older than 5.2.6. Such versions may be affected by the following issues :

- A stack-based buffer overflow in FastCGI SAPI.

- An integer overflow in printf().

- An security issue arising from improper calculation of the length of PATH_TRANSLATED in cgi_main.c.

- A safe_mode bypass in cURL.

- Incomplete handling of multibyte chars inside escapeshellcmd().

- Issues in the bundled PCRE fixed by version 7.6.

Solution

Upgrade to PHP version 5.2.6 or later.

See Also

http://www.php.net/releases/5_2_6.php

https://seclists.org/bugtraq/2008/Mar/285

https://seclists.org/fulldisclosure/2008/May/102

https://seclists.org/fulldisclosure/2008/May/106

Plugin Details

Severity: High

ID: 32123

File Name: php_5_2_6.nasl

Version: 1.29

Type: remote

Family: CGI abuses

Published: 5/2/2008

Updated: 1/19/2021

Dependencies: php_version.nasl

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

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

Temporal Vector: CVSS2#E:POC/RL:OF/RC:C

Vulnerability Information

CPE: cpe:2.3:a:php:php:*:*:*:*:*:*:*:*

Required KB Items: www/PHP

Exploit Ease: No exploit is required

Reference Information

CVE: CVE-2008-2051, CVE-2007-6039, CVE-2007-4850, CVE-2008-0599, CVE-2008-2050, CVE-2008-1384

BID: 29009, 27413, 28392

CWE: 119, 20, 264

Secunia: 30048