Out-of-bounds read in libheif - CVE-2026-41071

 

Out-of-bounds read in libheif - CVE-2026-41071

Published: May 20, 2026


Vulnerability identifier: #VU131971
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-41071
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: struktur AG
Affected software:
libheif

Detailed vulnerability description

The vulnerability allows a remote attacker to disclose sensitive information or cause a denial of service.

The vulnerability exists due to out-of-bounds read in SampleAuxInfoReader::SampleAuxInfoReader() in libheif/sequences/track.cc when parsing a crafted HEIF sequence file with a mismatched saiz sample count. A remote attacker can supply a specially crafted HEIF file to disclose sensitive information or cause a denial of service.

The issue is triggered during file parsing via heif_context_read_from_file without additional user interaction, and in debug builds an assertion may fire instead of the out-of-bounds access.


How to mitigate CVE-2026-41071

Install security update from vendor's website.

Sources