Incorrect calculation in libheif - #VU131964
Published: May 20, 2026
libheif
Detailed vulnerability description
The vulnerability allows a remote attacker to bypass container-boundary checks.
The vulnerability exists due to incorrect calculation in BitstreamRange::BitstreamRange(istr, start, end) in libheif/bitstream.cc when parsing crafted HEIF or AVIF files with a non-zero container start offset. A remote attacker can supply a specially crafted file to bypass container-boundary checks.
The demonstrated impact is limited to incorrect parsing behavior, with no crash, memory corruption, data exfiltration, or availability impact shown on the standard in-memory parse path.