Allocation of Resources Without Limits or Throttling in libheif - CVE-2026-50142
Published: June 26, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to allocation of resources without limits or throttling in Box_stsz::parse() fixed-size mode when parsing a crafted HEIF sequence file through the public C API. A remote attacker can supply a crafted HEIF sequence file with an excessive sample_count value to cause a denial of service.
Only the file parser is exercised, and no decoder backend is required.
Affected software
Ubuntu
libheif (Ubuntu package)
How to mitigate CVE-2026-50142
libheif (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3