CVE-2026-142495: libheif 1.19.0 before 1.23.4 Resource Exhaustion via Unenforced iinf Item Limit
libheif 1.19.0 before 1.23.4 contains an allocation of resources without limits vulnerability in Boxiinf::parse() and Box::readchildren() that allows attackers to cause denial of service via crafted HEIF files. Attackers can declare a huge number of 'infe' items to trigger quadratic CPU time and gigabytes of heap usage, or overflow the WebAssembly stack in Emscripten builds.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to the WebAssembly-specific impact?
Emscripten builds are specifically affected because a crafted HEIF file can overflow the WebAssembly stack. Other affected libheif deployments can experience quadratic CPU consumption and gigabytes of heap allocation.
What must an attacker do to trigger the denial of service?
An attacker needs to provide a crafted HEIF file that declares a huge number of infe items. Exploitation requires a user or application to process that file.
How can I determine whether my installation is affected?
Check the installed libheif version. Versions from 1.19.0 before 1.23.4 are affected.