AlmaLinux 8 : php:7.4 (ALSA-2022:1935)

high Nessus Plugin ID 161124

Synopsis

The remote AlmaLinux host is missing one or more security updates.

Description

The remote AlmaLinux 8 host has packages installed that are affected by multiple vulnerabilities as referenced in the ALSA-2022:1935 advisory.

- In PHP versions 7.3.x up to and including 7.3.31, 7.4.x below 7.4.25 and 8.0.x below 8.0.12, when running PHP FPM SAPI with main FPM daemon process running as root and child worker processes running as lower- privileged users, it is possible for the child processes to access memory shared with the main process and write to it, modifying it in a way that would cause the root process to conduct invalid memory reads and writes, which can be used to escalate privileges from local unprivileged user to the root user.
(CVE-2021-21703)

- In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using URL validation functionality via filter_var() function with FILTER_VALIDATE_URL parameter, an URL with invalid password field can be accepted as valid. This can lead to the code incorrectly parsing the URL and potentially leading to other security implications - like contacting a wrong server or making a wrong access decision.
(CVE-2021-21705)

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

Solution

Update the affected packages.

See Also

https://errata.almalinux.org/8/ALSA-2022-1935.html

Plugin Details

Severity: High

ID: 161124

File Name: alma_linux_ALSA-2022-1935.nasl

Version: 1.4

Type: local

Published: 5/12/2022

Updated: 10/27/2023

Supported Sensors: Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Medium

Base Score: 6.9

Temporal Score: 5.4

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

CVSS Score Source: CVE-2021-21703

CVSS v3

Risk Factor: High

Base Score: 7

Temporal Score: 6.3

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

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

Vulnerability Information

CPE: p-cpe:/a:alma:linux:php-enchant, p-cpe:/a:alma:linux:php-gd, p-cpe:/a:alma:linux:php-snmp, p-cpe:/a:alma:linux:php-process, p-cpe:/a:alma:linux:php-common, p-cpe:/a:alma:linux:php-cli, p-cpe:/a:alma:linux:libzip-devel, p-cpe:/a:alma:linux:libzip-tools, p-cpe:/a:alma:linux:php-pdo, p-cpe:/a:alma:linux:php-pecl-apcu-devel, p-cpe:/a:alma:linux:php-dbg, p-cpe:/a:alma:linux:php-ffi, p-cpe:/a:alma:linux:php-gmp, p-cpe:/a:alma:linux:php-ldap, p-cpe:/a:alma:linux:php-dba, p-cpe:/a:alma:linux:php-json, p-cpe:/a:alma:linux:php-bcmath, p-cpe:/a:alma:linux:php-pecl-zip, p-cpe:/a:alma:linux:php-pear, p-cpe:/a:alma:linux:php-pgsql, p-cpe:/a:alma:linux:php-mysqlnd, p-cpe:/a:alma:linux:php-odbc, p-cpe:/a:alma:linux:php-xml, p-cpe:/a:alma:linux:php-intl, cpe:/o:alma:linux:8, p-cpe:/a:alma:linux:php-embedded, p-cpe:/a:alma:linux:php-xmlrpc, p-cpe:/a:alma:linux:php-devel, p-cpe:/a:alma:linux:php-soap, p-cpe:/a:alma:linux:apcu-panel, p-cpe:/a:alma:linux:php-pecl-rrd, p-cpe:/a:alma:linux:php-pecl-apcu, p-cpe:/a:alma:linux:php-pecl-xdebug, p-cpe:/a:alma:linux:php-mbstring, p-cpe:/a:alma:linux:libzip, p-cpe:/a:alma:linux:php-opcache, p-cpe:/a:alma:linux:php, p-cpe:/a:alma:linux:php-fpm

Required KB Items: Host/local_checks_enabled, Host/cpu, Host/AlmaLinux/release, Host/AlmaLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/10/2022

Vulnerability Publication Date: 7/22/2021

Reference Information

CVE: CVE-2021-21703, CVE-2021-21705

IAVA: 2021-A-0503-S