PHP 5.6.x < 5.6.30 Multiple Vulnerabilities

High Nessus Network Monitor Plugin ID 9937

Synopsis

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

Description

Versions of PHP 5.6.x prior to 5.6.30 are affected by multiple vulnerabilities :

- An out-of-bounds read flaw exists in the 'phar_parse_pharfile()' function in 'ext/phar/phar.c' that is triggered when handling phar archives. This may allow a remote attacker to cause a denial of service. (OSVDB 149621)
- A floating pointer exception flaw exists in the 'exif_convert_any_to_int()' function in 'ext/exif/exif.c' that is triggered when handling TIFF and JPEG image tags. This may allow a remote attacker to cause a crash. (OSVDB 149623)
- An off-by-one overflow condition exists in the 'phar_parse_pharfile()' function in 'ext/phar/phar.c' that is triggered when parsing phar archives. This may allow a remote attacker to cause a limited buffer overflow, resulting in a crash. (OSVDB 149629)
- An out-of-bounds read flaw exists in the 'finish_nested_data()' function in 'ext/standard/var_unserializer.c' that is triggered when handling unserialized data. This may allow a remote attacker to crash a process built with the language or potentially disclose memory contents. (OSVDB 149665)
- An integer overflow condition exists in the 'phar_parse_pharfile()' function in 'ext/phar/phar.c'. The issue is triggered as certain input is not properly validated when handling phar archives. This may allow a context-dependent attacker to crash a process built with the language. (OSVDB 149666)

Solution

Upgrade to PHP version 5.6.30 or later.

See Also

http://php.net/ChangeLog-5.php#5.6.30

Plugin Details

Severity: High

ID: 9937

File Name: 9937.prm

Family: Web Servers

Published: 2017/01/03

Modified: 2017/02/09

Dependencies: 8682

Nessus ID: 96799

Risk Information

Risk Factor: High

CVSSv2

Base Score: 7.8

Temporal Score: 6.8

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

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

CVSSv3

Base Score: 7.5

Temporal Score: 7.2

Vector: CVSS3#AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS3#E:X/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:php:php

Patch Publication Date: 2017/01/19

Vulnerability Publication Date: 2016/12/31

Reference Information

CVE: CVE-2016-1015, CVE-2016-1016, CVE-2016-1016

BID: 95764, 95768, 95783

OSVDB: 149621, 149623, 149629, 149665, 149666