CVE-2026-125250Published Nov 9, 2026 · Nov 9Updated 5d ago
FFmpeg heap buffer overflow in GIF encoding
FFmpeg
High8.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| FFmpeg FFmpeg |
| No fix yet |
Original 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.
From the CVE record · VulnCheck