Debian dsa-5661 : libapache2-mod-php8.2 - security update

critical Nessus Plugin ID 193346

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 12 host has packages installed that are affected by multiple vulnerabilities as referenced in the dsa-5661 advisory.

- 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

Upgrade the libapache2-mod-php8.2 packages.

See Also

https://security-tracker.debian.org/tracker/source-package/php8.2

https://security-tracker.debian.org/tracker/CVE-2023-3823

https://security-tracker.debian.org/tracker/CVE-2023-3824

https://security-tracker.debian.org/tracker/CVE-2024-2756

https://security-tracker.debian.org/tracker/CVE-2024-3096

https://packages.debian.org/source/bookworm/php8.2

Plugin Details

Severity: Critical

ID: 193346

File Name: debian_DSA-5661.nasl

Version: 1.2

Type: local

Agent: unix

Published: 4/16/2024

Updated: 6/14/2024

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, 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:debian:debian_linux:php8.2-mbstring, p-cpe:/a:debian:debian_linux:php8.2-sybase, p-cpe:/a:debian:debian_linux:php8.2-xml, p-cpe:/a:debian:debian_linux:php8.2-fpm, p-cpe:/a:debian:debian_linux:libapache2-mod-php8.2, p-cpe:/a:debian:debian_linux:php8.2-intl, p-cpe:/a:debian:debian_linux:php8.2-cgi, p-cpe:/a:debian:debian_linux:php8.2-phpdbg, p-cpe:/a:debian:debian_linux:php8.2-enchant, p-cpe:/a:debian:debian_linux:php8.2-sqlite3, p-cpe:/a:debian:debian_linux:php8.2-tidy, p-cpe:/a:debian:debian_linux:php8.2-curl, cpe:/o:debian:debian_linux:12.0, p-cpe:/a:debian:debian_linux:php8.2-common, p-cpe:/a:debian:debian_linux:php8.2-readline, p-cpe:/a:debian:debian_linux:php8.2-pgsql, p-cpe:/a:debian:debian_linux:php8.2-bz2, p-cpe:/a:debian:debian_linux:libphp8.2-embed, p-cpe:/a:debian:debian_linux:php8.2, p-cpe:/a:debian:debian_linux:php8.2-gd, p-cpe:/a:debian:debian_linux:php8.2-interbase, p-cpe:/a:debian:debian_linux:php8.2-bcmath, p-cpe:/a:debian:debian_linux:php8.2-xsl, p-cpe:/a:debian:debian_linux:php8.2-zip, p-cpe:/a:debian:debian_linux:php8.2-cli, p-cpe:/a:debian:debian_linux:php8.2-odbc, p-cpe:/a:debian:debian_linux:php8.2-imap, p-cpe:/a:debian:debian_linux:php8.2-opcache, p-cpe:/a:debian:debian_linux:php8.2-pspell, p-cpe:/a:debian:debian_linux:php8.2-soap, p-cpe:/a:debian:debian_linux:php8.2-snmp, p-cpe:/a:debian:debian_linux:php8.2-dev, p-cpe:/a:debian:debian_linux:php8.2-gmp, p-cpe:/a:debian:debian_linux:php8.2-dba, p-cpe:/a:debian:debian_linux:php8.2-ldap, p-cpe:/a:debian:debian_linux:php8.2-mysql

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/15/2024

Vulnerability Publication Date: 8/3/2023

Reference Information

CVE: CVE-2023-3823, CVE-2023-3824, CVE-2024-2756, CVE-2024-3096

IAVA: 2024-A-0244-S