# CVE-2026-32739: libheif is Vulnerable to Infinite Loop DoS via stts Sample Duration Lookup

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T19:10:03.585Z
- Modified: 2026-07-24T09:10:00.153Z
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- strukturag libheif: < 1.22.0
- struktur libheif: before 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

- CVE List: [CVE-2026-32739](https://www.cve.org/CVERecord?id=CVE-2026-32739), CVE Terms of Use, modified 2026-05-20
- NVD: [CVE-2026-32739](https://nvd.nist.gov/vuln/detail/CVE-2026-32739), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-32739 · Whole record: https://cve.day/CVE-2026-32739.json · Rebuilt by cve.day 2026-11-25T22:59:21.995Z
