CVE-2026-142494: libheif 1.20.0 before 1.23.4 Memory Leak in Raw Sequence Sample API
libheif 1.20.0 before 1.23.4 contains a memory leak vulnerability in Track::getnextsamplerawdata() that allows attackers to exhaust process memory by supplying a crafted HEIF image sequence. Attackers can trigger error paths via 'saiz'/'saio' auxiliary data or TAI timestamps, or oversized 'stsz' samples, leaking sample copies or aborting the process through uncaught std::badalloc.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
Applications using libheif versions from 1.20.0 through versions before 1.23.4 are affected when they process attacker-controlled HEIF image sequences. The issue can exhaust memory or terminate the affected process.
What does an attacker need to exploit this?
An attacker needs to supply a crafted HEIF sequence that reaches the raw sequence sample processing path. The supplied vector indicates network reachability, no required privileges, low attack complexity, and required user interaction.
What version fixes the issue?
Upgrade libheif to version 1.23.4 or later. The available data does not identify a workaround for environments that cannot immediately upgrade.