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 package | Versions | Reported by |
|---|---|---|
| strukturag libheif | < 1.22.0 | CVE List |
| struktur libheif | before 1.22.0 | NVD |
Classification
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
| https://github.com/strukturag/libheif/security/advisories/GHSA-j9g7-q9hv-gq8c | exploit, vendor-advisory | |
| https://github.com/strukturag/libheif/releases/tag/v1.22.0 | release-notes | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-32739 changed 2026-05-20 | CVE Terms of Use |
| NVD | CVE-2026-32739 changed 2026-07-24 | Public domain |