libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, a crafted HEIF sequence file where the saiz box declares more samples than actually exist in the track's chunk table causes a heap-buffer-overflow (out-of-bounds read) in the SampleAuxInfoReader constructor. The SampleAuxInfoReader constructor iterates over saiz->get_num_samples() samples but doesn't validate that this count is consistent with the number of chunks in the chunks vector. When saiz declares more samples than the chunks cover, the loop increments current_chunk past chunks.size(), causing an out-of-bounds read on the chunks vector. The vulnerability is triggered during file parsing (heif_context_read_from_file) without any additional user interaction. Any application using libheif to open untrusted HEIF files is affected. This issue has been fixed in version 1.22.0.
References
| Link | Resource |
|---|---|
| https://github.com/strukturag/libheif/releases/tag/v1.22.0 | Product Release Notes |
| https://github.com/strukturag/libheif/security/advisories/GHSA-xj92-xjff-h8w3 | Exploit Mitigation Vendor Advisory |
Configurations
History
27 May 2026, 15:25
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:* | |
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 8.1 |
| First Time |
Struktur
Struktur libheif |
|
| References | () https://github.com/strukturag/libheif/releases/tag/v1.22.0 - Product, Release Notes | |
| References | () https://github.com/strukturag/libheif/security/advisories/GHSA-xj92-xjff-h8w3 - Exploit, Mitigation, Vendor Advisory |
22 May 2026, 22:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-05-22 22:16
Updated : 2026-05-27 15:25
NVD link : CVE-2026-41071
Mitre link : CVE-2026-41071
CVE.ORG link : CVE-2026-41071
JSON object : View
Products Affected
struktur
- libheif
CWE
CWE-125
Out-of-bounds Read
