Ubuntu 16.04 LTS : PHP vulnerabilities (USN-5006-2)

medium Nessus Plugin ID 151583
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 Ubuntu host is missing one or more security updates.

Description

The remote Ubuntu 16.04 LTS host has packages installed that are affected by multiple vulnerabilities as referenced in the USN-5006-2 advisory.

- In PHP versions 7.2.x below 7.2.33, 7.3.x below 7.3.21 and 7.4.x below 7.4.9, while processing PHAR files using phar extension, phar_parse_zipfile could be tricked into accessing freed memory, which could lead to a crash or information disclosure. (CVE-2020-7068)

- In PHP versions 7.3.x below 7.3.26, 7.4.x below 7.4.14 and 8.0.0, when validating URL with functions like filter_var($url, FILTER_VALIDATE_URL), PHP will accept an URL with invalid password as valid URL. This may lead to functions that rely on URL being valid to mis-parse the URL and produce wrong data as components of the URL. (CVE-2020-7071)

- In PHP versions 7.3.x below 7.3.27, 7.4.x below 7.4.15 and 8.0.x below 8.0.2, when using SOAP extension to connect to a SOAP server, a malicious SOAP server could return malformed XML data as a response that would cause PHP to access a null pointer and thus cause a crash. (CVE-2021-21702)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://ubuntu.com/security/notices/USN-5006-2

Plugin Details

Severity: Medium

ID: 151583

File Name: ubuntu_USN-5006-2.nasl

Version: 1.4

Type: local

Agent: unix

Published: 7/13/2021

Updated: 10/8/2021

Dependencies: ssh_get_info.nasl

Risk Information

CVSS Score Source: CVE-2021-21705

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

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

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

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.6

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:2.3:o:canonical:ubuntu_linux:16.04:-:lts:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:libapache2-mod-php5:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-cgi:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-cli:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-fpm:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:libapache2-mod-php7.0:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-cgi:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-cli:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-fpm:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-xmlrpc:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-bcmath:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-mbstring:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-xmlrpc:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-enchant:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-curl:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php-pear:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-common:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-dev:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-gd:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-ldap:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-mysql:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-odbc:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-pgsql:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-recode:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-snmp:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-sqlite:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-sybase:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-xsl:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-pspell:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-tidy:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:libapache2-mod-php5filter:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-gmp:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-intl:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-mysqlnd:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-curl:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-gd:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-mysql:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:libphp5-embed:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:libphp7.0-embed:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php5-readline:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-bz2:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-common:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-dba:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-dev:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-enchant:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-gmp:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-imap:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-interbase:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-intl:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-json:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-ldap:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-mcrypt:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-odbc:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-opcache:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-pgsql:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-phpdbg:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-pspell:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-readline:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-recode:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-snmp:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-soap:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-sqlite3:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-sybase:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-tidy:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-xml:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-xsl:*:*:*:*:*:*:*, p-cpe:2.3:a:canonical:ubuntu_linux:php7.0-zip:*:*:*:*:*:*:*

Required KB Items: Host/cpu, Host/Debian/dpkg-l, Host/Ubuntu, Host/Ubuntu/release

Exploit Ease: No known exploits are available

Patch Publication Date: 7/13/2021

Vulnerability Publication Date: 8/10/2020

Reference Information

CVE: CVE-2020-7068, CVE-2020-7071, CVE-2021-21702, CVE-2021-21704, CVE-2021-21705

IAVA: 2020-A-0373-S, 2021-A-0009-S, 2021-A-0082-S

USN: 5006-2