CVE-2026-41069
JSON

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 packageVersionsReported by
strukturag libheif< 1.22.0CVE List
struktur libheifbefore 1.22.0NVD

Classification

CWE-125CWE-476

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2026-41069 changed 2026-05-26CVE Terms of Use
NVDCVE-2026-41069 changed 2026-07-23Public domain