CVE-2026-32739
JSON

6.5medium

libheif is Vulnerable to Infinite Loop DoS via stts Sample Duration Lookup

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.32% (higher than 26% 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 below, a crafted 800-byte HEIF sequence file causes an infinite loop in Box_stts::get_sample_duration(), consuming 100% CPU indefinitely with zero progress, leading to DoS. The loop has no iteration limit or timeout and is triggered during file open (parsing) - before any user interaction or image decoding. The process stays alive (no crash, no error logged), making it invisible to crash-based monitoring. This issue has been fixed in version 1.22.0.

Affected

Product or packageVersionsReported by
strukturag libheif< 1.22.0CVE List
struktur libheifbefore 1.22.0NVD

Classification

CWE-835

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 below, a crafted 800-byte HEIF sequence file causes an infinite loop in Box_stts::get_sample_duration(), consuming 100% CPU indefinitely with zero progress, leading to DoS. The loop has no iteration limit or timeout and is triggered during file open (parsing) - before any user interaction or image decoding. The process stays alive (no crash, no error logged), making it invisible to crash-based monitoring. This issue has been fixed in version 1.22.0.

NVD (es)

libheif es un decodificador y codificador de formato de archivo HEIF y AVIF. En las versiones 1.21.2 e inferiores, un archivo de secuencia HEIF de 800 bytes manipulado provoca un bucle infinito en Box_stts::get_sample_duration(), consumiendo el 100% de la CPU indefinidamente sin ningún progreso, lo que lleva a DoS. El bucle no tiene límite de iteraciones ni tiempo de espera y se activa durante la apertura del archivo (análisis), antes de cualquier interacción del usuario o decodificación de imagen. El proceso permanece activo (sin bloqueo, sin error registrado), lo que lo hace invisible para la monitorización basada en bloqueos. Este problema ha sido solucionado en la versión 1.22.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-32739 changed 2026-05-20CVE Terms of Use
NVDCVE-2026-32739 changed 2026-07-24Public domain