PHP 7.0.x < 7.0.20 Multiple Vulnerabilities

critical Nessus Plugin ID 100804

Synopsis

The version of PHP running on the remote web server is affected by multiple vulnerabilities.

Description

According to its banner, the version of PHP running on the remote web server is 7.0.x prior to 7.0.20. It is, therefore, affected by the following vulnerabilities :

- A flaw exists in _zend_hash_add_or_update_i within file main/php_ini.c when handling a malformed php.ini file.
An attacker can exploit this to cause a segmentation fault, resulting in a denial of service condition or possibly the execution of arbitrary code. (bug #74600)

- An illegal instruction error exists in the function ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER() when processing specially crafted input. An attacker can exploit this to cause a denial of service condition or possibly the execution of arbitrary code. (bug #74546)

Solution

Upgrade to PHP version 7.0.20 or later.

See Also

http://php.net/ChangeLog-7.php#7.0.20

Plugin Details

Severity: Critical

ID: 100804

File Name: php_7_0_20.nasl

Version: 1.3

Type: remote

Family: CGI abuses

Published: 6/15/2017

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

CVSS v2

Risk Factor: Critical

Base Score: 10

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

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: cpe:/a:php:php

Required KB Items: www/PHP

Patch Publication Date: 6/8/2017

Vulnerability Publication Date: 6/8/2017

Reference Information

BID: 99003