Libheif < 1.22.1 OOB Read (macOS)

medium Nessus Plugin ID 321518

Synopsis

Libheif running on the remote host is affected by an out-of-bounds read vulnerability.

Description

According to its self-reported version, libheif prior to 1.22.1 is affected by an out-of-bounds read vulnerability. The uncompressed HEIF decoder validates explicit icef compressed-unit offsets using unit_offset + unit_size. Because the addition can wrap, a crafted HEIF file can pass the range check and then construct a vector from iterators outside the compressed item buffer, producing an out-of-bounds heap read and crash.

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

Solution

Upgrade to libheif version 1.22.1 or later.

See Also

http://www.nessus.org/u?b101751d

Plugin Details

Severity: Medium

ID: 321518

File Name: libheif_CVE-2026-49271.nasl

Version: 1.1

Type: Local

Agent: macosx

Published: 6/18/2026

Updated: 6/18/2026

Supported Sensors: Nessus Agent, Nessus

Risk Information

CVSS v2

Risk Factor: High

Base Score: 7.8

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

CVSS Score Source: CVE-2026-49271

CVSS v3

Risk Factor: Medium

Base Score: 6.5

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

Vulnerability Information

CPE: cpe:/a:struktur:libheif

Required KB Items: Host/local_checks_enabled, Host/MacOSX/Version, installed_sw/libheif

Patch Publication Date: 5/25/2026

Vulnerability Publication Date: 5/25/2026

Reference Information

CVE: CVE-2026-49271