{"id":"CVE-2026-125250","published":"2026-11-09T19:11:56Z","modified":"2026-11-13T13:03:18Z","title":"FFmpeg through 9.0.2 GIF Encoder Heap Buffer Overflow via shrunk_buf Remap","vendor":"FFmpeg","product":"FFmpeg","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00144,"percentile":0.03763,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25690","tags":["issue-tracking"]},{"url":"https://github.com/FFmpeg/FFmpeg/commit/26c2980980295e5516f308c5a2792d2a72e43eae","tags":["patch"]},{"url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/gif.c#L405","tags":["technical-description"]},{"url":"https://github.com/FFmpeg/FFmpeg","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-gif-encoder-heap-buffer-overflow-via-shrunk-buf-remap","tags":["third-party-advisory"]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":0.75},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"ffmpeg","affectedVersions":[{"vendor":"FFmpeg","product":"FFmpeg","versions":["<= 9.0.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-13T13:01:25.891447Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-120200","exploited":false,"provenance":"source"}}