CVE-2026-41071
highpriority · track · 32EPSS 0.003 · 23 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–high · 1.2–8.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (10)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/strukturag/libheif/releasesPatchcnnvd
- https://github.com/strukturag/libheif/releases/tag/v1.22.0cnnvd
- https://github.com/strukturag/libheif/security/advisories/GHSA-xj92-xjff-h8w3cnnvd
- https://github.com/strukturag/libheif/releases/tag/v1.22.0enisa_euvd
- https://github.com/strukturag/libheif/security/advisories/GHSA-xj92-xjff-h8w3enisa_euvd
- https://github.com/strukturag/libheif/releases/tag/v1.22.0ProductRelease Notesnvd
- https://github.com/strukturag/libheif/security/advisories/GHSA-xj92-xjff-h8w3ExploitMitigationVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan