PT-2026-42834 · Libheif · Libheif
M1-Llie
·
Published
2026-05-22
·
Updated
2026-05-28
·
CVE-2026-41071
CVSS v3.1
8.1
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
libheif versions prior to 1.22.0
Description
A heap-buffer-overflow (out-of-bounds read) occurs in the
SampleAuxInfoReader constructor when parsing a crafted HEIF sequence file. The issue arises because the constructor iterates over the number of samples declared in the saiz box using saiz->get num samples() without validating that this count is consistent with the number of chunks in the chunks vector. Consequently, if the saiz box declares more samples than the chunks cover, the loop increments current chunk beyond the size of the chunks vector, leading to an out-of-bounds read. This is triggered during file parsing via the heif context read from file function without requiring user interaction.Recommendations
Update to version 1.22.0.
Fix
Out of bounds Read
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Libheif