PHP 7.0.x < 7.0.20 Multiple Vulnerabilities

critical Web App Scanning Plugin ID 98843

Synopsis

PHP 7.0.x < 7.0.20 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)

Note that the scanner has not tested for these issues but has instead relied only on the application's self-reported version number.

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: 98843

Type: remote

Published: 1/9/2019

Updated: 3/14/2023

Scan Template: api, basic, full, pci, scan

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Critical

Base Score: 10

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

CVSS Score Source: Tenable

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

CVSS Score Source: Tenable

Vulnerability Information

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

Exploit Ease: No known exploits are available

Patch Publication Date: 6/8/2017

Vulnerability Publication Date: 6/8/2017

Reference Information