CVE-2026-125250

published 9 Nov 2026 · updated 13 Nov 2026

FFmpeg through 9.0.2 GIF Encoder Heap Buffer Overflow via shrunk_buf Remap

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ffmpeg<=9.0.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-125250 severity on Zeptric[![CVE-2026-125250](https://zeptric.io/badge/cve/CVE-2026-125250.svg)](https://zeptric.io/cve/CVE-2026-125250)