GHSA-gm97-rxv6-cv4gHighCVSS 7.8

FFmpeg through 9.0.2 contains a heap buffer overflow in the GIF encoder's gif_image_write_image()...

Published
November 9, 2026
Last Modified
November 9, 2026

🔗 CVE IDs covered (1)

📋 Description

FFmpeg through 9.0.2 contains a heap buffer overflow in the GIF encoder's gif_image_write_image() in libavcodec/gif.c because shrunk_buf is sized from the first frame's linesize. Attackers can supply PAL8 video whose frame linesize grows mid-stream, causing remap_frame_to_palette() to write past shrunk_buf and corrupt the heap during GIF transcoding.

🔗 References (7)