CVE-2026-125250 FFmpeg through 9.0.2 GIF Encoder Heap Buffer Overflow via shrunk_buf Remap
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2026-125250?
CVE-2026-125250 is a high-severity vulnerability in FFmpeg, published on 9 Nov 2026.
Official 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.
Weakness: CWE-122
Which versions are affected by CVE-2026-125250?
How do I fix CVE-2026-125250?
No fix has been published for CVE-2026-125250 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-125250 being exploited?
There is no known exploitation of CVE-2026-125250 in the wild and no public exploit code.
Sources
Also known as GHSA-gm97-rxv6-cv4g, UBUNTU-CVE-2026-125250.