Alpine: php81: security update to 8.1.22-r0

critical Tenable Cloud Security Plugin ID 406382

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- 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)

See Also

https://security.alpinelinux.org/vuln/CVE-2023-3247

https://security.alpinelinux.org/vuln/CVE-2023-3823

https://security.alpinelinux.org/vuln/CVE-2023-3824

Plugin Details

Severity: Critical

ID: 406382

Version: Revision 1.33

Type: Local

Published: 10/31/2023

Updated: 4/4/2025

Supported Sensors: Agentless Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: High

Score: 7.6

Percentile: 98.5

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

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 7/22/2023

Reference Information

CVE: CVE-2023-3247, CVE-2023-3823, CVE-2023-3824

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