Description
libheif 1.19.0 before 1.23.6 contains a CPU exhaustion vulnerability in the uncompressed (unci) codec that re-decompresses and re-reads the entire item for every tile when a cmpC box lacks an icef box. Attackers can supply a crafted few-kilobyte HEIF file with a large tile grid and highly compressed payload to occupy a CPU core for minutes, causing denial of service.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| strukturag | libheif | 1.19.0 – < 1.23.6 | 1.23.6 |
References
- GitHub Security Advisory (GHSA-6fqc-p7r8-2g36) vendor-advisory
- https://github.com/strukturag/libheif/commit/5d35b98d72cc38558ed70b04a410e7e30447cc1d patch
- libheif v1.23.6 Release Notes release-notes
- https://github.com/strukturag/libheif/blob/v1.23.5/libheif/codecs/uncompressed/unc_decoder.cc#L224-L257 technical-description
- VulnCheck Advisory: libheif 1.19.0 before 1.23.6 CPU Exhaustion DoS via unci Codec Decompression third-party-advisory