AlmaLinux 8 : php:8.0 (ALSA-2023:5927)

critical Nessus Plugin ID 183675

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-2023:5927 advisory.

- In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, password_verify() function may accept some invalid Blowfish hashes as valid. If such invalid hash ever ends up in the password database, it may lead to an application allowing any password for this entry as valid. (CVE-2023-0567)

- In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, core path resolution function allocate buffer one byte too small. When resolving paths with lengths close to system MAXPATHLEN setting, this may lead to the byte after the allocated buffer being overwritten with NUL value, which might lead to unauthorized data access or modification. (CVE-2023-0568)

- In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, excessive number of parts in HTTP form upload can cause high resource consumption and excessive number of log entries. This can cause denial of service on the affected server by exhausting CPU resources or disk space. (CVE-2023-0662)

- In PHP versions 8.0.* before 8.0.29, 8.1.* before 8.1.20, 8.2.* before 8.2.7 when using SOAP HTTP Digest Authentication, random value generator was not checked for failure, and was using narrower range of values than it should have. In case of random generator failure, it could lead to a disclosure of 31 bits of uninitialized memory from the client to the server, and it also made easier to a malicious server to guess the client's nonce. (CVE-2023-3247)

- In PHP versions 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8 various XML functions rely on libxml global state to track configuration variables, like whether external entities are loaded.
This state is assumed to be unchanged unless the user explicitly changes it by calling appropriate function. However, since the state is process-global, other modules - such as ImageMagick - may also use this library within the same process, and change that global state for their internal purposes, and leave it in a state where external entities loading is enabled. This can lead to the situation where external XML is parsed with external entities loaded, which can lead to disclosure of any local files accessible to PHP. This vulnerable state may persist in the same process across many requests, until the process is shut down. (CVE-2023-3823)

- In PHP version 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8, when loading phar file, while reading PHAR directory entries, insufficient length checking may lead to a stack buffer overflow, leading potentially to memory corruption or RCE. (CVE-2023-3824)

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-2023-5927.html

Plugin Details

Severity: Critical

ID: 183675

File Name: alma_linux_ALSA-2023-5927.nasl

Version: 1.2

Type: local

Published: 10/21/2023

Updated: 6/7/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

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

CVSS Score Source: CVE-2023-3824

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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:P/RL:O/RC:C

Vulnerability Information

CPE: 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-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, cpe:/o:alma:linux:8::nfv, cpe:/o:alma:linux:8::powertools, 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-devel, p-cpe:/a:alma:linux:php-soap, cpe:/o:alma:linux:8::supplementary, 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-mbstring, p-cpe:/a:alma:linux:libzip, cpe:/o:alma:linux:8::sap_hana, cpe:/o:alma:linux:8::realtime, cpe:/o:alma:linux:8::highavailability, p-cpe:/a:alma:linux:php-opcache, cpe:/o:alma:linux:8::resilientstorage, cpe:/o:alma:linux:8::baseos, p-cpe:/a:alma:linux:php, p-cpe:/a:alma:linux:php-pecl-xdebug3, cpe:/o:alma:linux:8::sap, p-cpe:/a:alma:linux:php-fpm, 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, cpe:/o:alma:linux:8::appstream, 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

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: 10/19/2023

Vulnerability Publication Date: 2/14/2023

Reference Information

CVE: CVE-2023-0567, CVE-2023-0568, CVE-2023-0662, CVE-2023-3247, CVE-2023-3823, CVE-2023-3824

CWE: 119, 131, 252, 328, 334, 400, 611, 770, 779

IAVA: 2023-A-0105-S, 2023-A-0321-S, 2023-A-0423-S