Inefficient Algorithmic Complexity in libheif - #VU158758

 

Inefficient Algorithmic Complexity in libheif - #VU158758

Published: November 3, 2026


Vulnerability identifier: #VU158758
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-407
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by exhausting parsing-worker CPU resources.

The vulnerability exists due to inefficient algorithmic complexity in libheif's Box_stsc::get_chunk() when looking up sample-to-chunk entries during file opening. A remote attacker can upload a crafted HEIF file containing N ordered stsc entries and N chunks to trigger a linear table scan for each chunk, producing O(N^2) CPU work and exhausting a parsing worker before any frame request or codec invocation.

The lookup is triggered by any file containing a moov box, regardless of its ftyp brands, including an ordinary still image with an appended moov box.


Affected software

libheif

Remediation

Install security update from vendor's website.

libheif - update to 1.23.7

External References

Related Security Bulletins