6.5medium
libheif allows Out-of-bounds vector access leading to invalid dereference (DoS)
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, a malformed HEIF sequence file can trigger an out-of-bounds read in core sequence parsing logic, causing DoS. A malformed file can have stco.entry_count == 0 (creating no chunks) while still passing validation because saio.entry_count == 0 matches, but with saiz.sample_count > 0 the SampleAuxInfoReader constructor still enters its loop. This leads to an out-of-bounds dereference on the empty chunks[0] in chunked mode.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| strukturag libheif | < 1.22.0 | CVE List |
| struktur libheif | before 1.22.0 | NVD |
Classification
What each source says
CVE List
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, a malformed HEIF sequence file can trigger an out-of-bounds read in core sequence parsing logic, causing DoS. A malformed file can have stco.entry_count == 0 (creating no chunks) while still passing validation because saio.entry_count == 0 matches, but with saiz.sample_count > 0 the SampleAuxInfoReader constructor still enters its loop. This leads to an out-of-bounds dereference on the empty chunks[0] in chunked mode.
NVD (es)
libheif es un decodificador y codificador de formato de archivo HEIF y AVIF. En las versiones 1.21.2 y anteriores, un archivo de secuencia HEIF malformado puede desencadenar una lectura fuera de límites en la lógica central de análisis de secuencias, causando DoS. Un archivo malformado puede tener stco.entry_count == 0 (sin crear fragmentos) mientras que aún pasa la validación porque saio.entry_count == 0 coincide, pero con saiz.sample_count > 0 el constructor de SampleAuxInfoReader aún entra en su bucle. Esto lleva a una desreferencia fuera de límites en los chunks[0] vacíos en modo fragmentado.
References
| https://github.com/strukturag/libheif/security/advisories/GHSA-p82x-fpmv-576r | exploit, vendor-advisory | |
| https://github.com/strukturag/libheif/releases/tag/v1.22.0 | product, release-notes | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-41069 changed 2026-05-26 | CVE Terms of Use |
| NVD | CVE-2026-41069 changed 2026-07-23 | Public domain |