AlmaLinux 8 : php:8.0 (ALSA-2022:7624)

critical Nessus Plugin ID 167431

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:7624 advisory.

- In PHP versions 7.4.x below 7.4.28, 8.0.x below 8.0.16, and 8.1.x below 8.1.3, when using filter functions with FILTER_VALIDATE_FLOAT filter and min/max limits, if the filter fails, there is a possibility to trigger use of allocated memory after free, which can result it crashes, and potentially in overwrite of other memory chunks and RCE. This issue affects: code that uses FILTER_VALIDATE_FLOAT with min/max limits.
(CVE-2021-21708)

- In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory using uninitialized data as pointers. This could lead to RCE vulnerability or denial of service. (CVE-2022-31625)

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-7624.html

Plugin Details

Severity: Critical

ID: 167431

File Name: alma_linux_ALSA-2022-7624.nasl

Version: 1.3

Type: local

Published: 11/14/2022

Updated: 10/4/2023

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.6

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

CVSS Score Source: CVE-2022-31625

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 9.1

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

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

CVSS Score Source: CVE-2021-21708

Vulnerability Information

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

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: 11/8/2022

Vulnerability Publication Date: 2/27/2022

Reference Information

CVE: CVE-2021-21708, CVE-2022-31625

CWE: 416, 824