Integer overflow in libheif - #VU131960
Published: May 20, 2026
libheif
Detailed vulnerability description
The vulnerability allows a remote attacker to cause incorrect association of auxiliary metadata with decoded samples.
The vulnerability exists due to integer overflow in SampleAuxInfoReader::get_sample_info() in libheif/sequences/track.cc when processing a crafted HEIF sequence file with a large number of samples. A remote attacker can supply a specially crafted sequence file to cause incorrect association of auxiliary metadata with decoded samples.
The resulting wrapped offset causes auxiliary data to be read from an unintended file position, and user interaction is required to open or process the crafted file.