Alpine: heif-thumbnailer, multiple libheif packages: security update to 1.23.0-r0

medium Tenable Cloud Security Plugin ID 482958

Description

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

- libheif is a HEIF and AVIF file format decoder and encoder. From 1.19.0 until 1.23.0, a crafted HEIF
sequence accepted by heif_context_read_from_memory() with the msf1 sequence brand can cause unbounded heap
allocation. In libheif/sequences/seq_boxes.cc, Box_stsz::parse() applies max_sequence_frames only to
variable-size samples, so fixed-size mode accepts an attacker-controlled sample_count without a bound. In
libheif/sequences/track.cc, Track::load() also adds current_sample_idx and samples_per_chunk in 32-bit
arithmetic, allowing the consistency check to be bypassed by wraparound. The resulting values reach the
Chunk::Chunk() allocation path, which can consume gigabytes of memory and crash or stall the process
through memory exhaustion. This issue is fixed in version 1.23.0. (CVE-2026-50142)

- libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and prior contain a heap-
buffer-overflow (write) vulnerability in the grid tile compositing, allowing an attacker to write 64 bytes
of fully attacker-controlled data past the end of a chroma plane heap allocation by crafting a HEIF/AVIF
file with a 1×4 grid of odd-height tiles. The overflow is triggered during normal image decoding with
default build configuration. The written bytes are chroma (Cb/Cr) pixel values from the attacking tile,
giving the attacker full control over the overflow content. This issue has been fixed in version 1.22.0.
(CVE-2026-32740)

- libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and below, a crafted
792-byte HEIF sequence file with samples_per_chunk=0 in the stsc box causes an unsigned integer underflow
in the Chunk constructor (m_last_sample = 0 + 0 - 1 = UINT32_MAX), mapping all samples to an empty chunk
and resulting in a denial of service. When any sample is accessed, the library reads from index 0 of an
empty std::vector, causing a guaranteed SEGV (null-page read). The file parses successfully without
producing an error; the crash occurs on the first frame access. This issue has been fixed in version
1.22.0. (CVE-2026-32738)

- libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and below, a crafted
800-byte HEIF sequence file causes an infinite loop in Box_stts::get_sample_duration(), consuming 100% CPU
indefinitely with zero progress, leading to DoS. The loop has no iteration limit or timeout and is
triggered during file open (parsing) - before any user interaction or image decoding. The process stays
alive (no crash, no error logged), making it invisible to crash-based monitoring. This issue has been
fixed in version 1.22.0. (CVE-2026-32739)

Solution

Update the heif-thumbnailer library and its related packages to version 1.23.0-r0 or later.

See Also

https://security.alpinelinux.org/vuln/CVE-2026-32738

https://security.alpinelinux.org/vuln/CVE-2026-32739

https://security.alpinelinux.org/vuln/CVE-2026-32740

https://security.alpinelinux.org/vuln/CVE-2026-50142

Plugin Details

Severity: Medium

ID: 482958

Version: Revision 1.1

Type: Local

Published: 11/26/2026

Updated: 11/26/2026

Supported Sensors: Agentless Assessment

Risk Information

VPR

Risk Factor: Medium

Score: 6.9

Percentile: 96.51

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

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

CVSS Score Source: CVE-2026-32738

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/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: 5/19/2026

Reference Information

CVE: CVE-2026-32738, CVE-2026-32739, CVE-2026-32740, CVE-2026-50142

IAVB: 2026-B-0158-S