Incorrect Bitwise Shift of Integer in libheif - #VU153980
Published: October 8, 2026
Vulnerability details
The vulnerability allows a remote attacker to trigger undefined behavior during image decoding.
The vulnerability exists due to an incorrect bitwise shift of an integer in ImageItem_Grid::decode_and_paste_tile_image() in libheif/image-items/grid.cc when computing the opaque alpha value for a grid image tile with a 64-bit alpha component. A remote attacker can supply a specially crafted image file that causes a shift by 64 bits to trigger undefined behavior during image decoding.
Exploitation requires user interaction and a build without assertions and with the uncompressed codec enabled through WITH_UNCOMPRESSED_CODEC. The uncompressed codec is disabled in the default build configuration.