vips_foreign_load_gif_scan_image in foreign/gifload.c in libvips prior to 8.8.2 tries to access a color map before a DGifGetImageDesc call, leading to a use-after-free.
libvips libvips