libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.19.0 through 1.21.2 have a heap OOB read in ImageItem_Grid::decode_grid_tile via irot-induced tile-coordinate underflow. Version 1.22.0 fixes the issue.
https://github.com/strukturag/libheif/security/advisories/GHSA-6x5f-qchq-cxqv
https://github.com/strukturag/libheif/commit/e523ec0bf379110b7c33d4c159f8b1202d332157