Amazon Linux 2023 : libwebp, libwebp-devel, libwebp-java (ALAS2023-2023-355)

high Nessus Plugin ID 182456

Synopsis

The remote Amazon Linux 2023 host is missing a security update.

Description

It is, therefore, affected by a vulnerability as referenced in the ALAS2023-2023-355 advisory.

With a specially crafted WebP lossless file, libwebp may write data out of bounds to the heap.

The ReadHuffmanCodes() function allocates the HuffmanCode buffer with a size that comes from an array of precomputed sizes: kTableSize. The color_cache_bits value defines which size to use.

The kTableSize array only takes into account sizes for 8-bit first-level table lookups but not second- level table lookups. libwebp allows codes that are up to 15-bit (MAX_ALLOWED_CODE_LENGTH). When BuildHuffmanTable() attempts to fill the second-level tables it may write data out-of-bounds. The OOB write to the undersized array happens in ReplicateValue. (CVE-2023-5129)

Tenable has extracted the preceding description block directly from the tested product security advisory.

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

Solution

Run 'dnf update libwebp --releasever 2023.2.20231002' to update your system.

See Also

https://alas.aws.amazon.com/AL2023/ALAS-2023-355.html

https://alas.aws.amazon.com/cve/html/CVE-2023-5129.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: High

ID: 182456

File Name: al2023_ALAS2023-2023-355.nasl

Version: 1.3

Type: local

Agent: unix

Published: 10/3/2023

Updated: 12/11/2024

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, Nessus

Risk Information

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

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

CVSS Score Source: CVE-2023-5129

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:libwebp-devel, p-cpe:/a:amazon:linux:libwebp-debuginfo, p-cpe:/a:amazon:linux:libwebp-java-debuginfo, p-cpe:/a:amazon:linux:libwebp, p-cpe:/a:amazon:linux:libwebp-java, p-cpe:/a:amazon:linux:libwebp-tools, p-cpe:/a:amazon:linux:libwebp-tools-debuginfo, p-cpe:/a:amazon:linux:libwebp-debugsource, cpe:/o:amazon:linux:2023

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

Exploit Ease: No known exploits are available

Patch Publication Date: 9/27/2023

Vulnerability Publication Date: 9/25/2023

Reference Information

CVE: CVE-2023-5129