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

 

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

Published: May 20, 2026


Vulnerability identifier: #VU131974
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-32738
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 cause a denial of service.

The vulnerability exists due to out-of-bounds read in Chunk::get_data_extent_for_sample() when parsing a crafted HEIF sequence file with samples_per_chunk set to 0 in the stsc box. A remote attacker can supply a specially crafted file to cause a denial of service.

User interaction is required to open the crafted file and access the first frame or sample.


How to mitigate CVE-2026-32738

Install security update from vendor's website.

Sources