Inefficient Algorithmic Complexity in libheif - #VU158752

 

Inefficient Algorithmic Complexity in libheif - #VU158752

Published: November 3, 2026


Vulnerability identifier: #VU158752
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 through CPU exhaustion in image-processing tools distributed with libheif.

The vulnerability exists due to inefficient algorithmic complexity in the heifio helper's find_exif_tag_in_ifd() function when traversing ExifIFD pointers without limiting total entry reads or repeated visits to the same IFD. A remote attacker can supply a crafted HEIC or AVIF file to heif-thumbnailer or heif-dec, or a crafted JPEG or PNG file to heif-enc, containing many self-referencing ExifIFD entries to trigger excessive traversal and exhaust CPU resources.

Applications that use only the libheif library, including the gdk-pixbuf loader, do not execute the affected code path.


Affected software

libheif

Remediation

Install security update from vendor's website.

libheif - update to 1.23.7

External References

Related Security Bulletins