{"id":"CVE-2026-125250","aliases":["CVE-2026-125250"],"related":[],"kind":"vulnerability","state":"published","title":"FFmpeg through 9.0.2 GIF Encoder Heap Buffer Overflow via shrunk_buf Remap","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-11-09T19:11:56.203Z","modified":"2026-11-30T16:22:13.463Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.5,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.5,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-122"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"9.0.2","status":"affected"}],"vendor":"FFmpeg","product":"FFmpeg","repo":"https://code.ffmpeg.org/FFmpeg/FFmpeg","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"9.0.2"}],"vendor":"ffmpeg","product":"ffmpeg","cpe":"cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25690","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FFmpeg/FFmpeg/commit/26c2980980295e5516f308c5a2792d2a72e43eae","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/gif.c#L405","tags":["patch","technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FFmpeg/FFmpeg","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-gif-encoder-heap-buffer-overflow-via-shrunk-buf-remap","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Joshua Rogers (AISLE Research)","Michael Niedermayer"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-13T13:01:25.891Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-125250","url":"https://www.cve.org/CVERecord?id=CVE-2026-125250","licence":"CVE Terms of Use","modified":"2026-11-13T13:03:18.783Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-125250","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125250","licence":"Public domain","modified":"2026-11-30T16:22:13.463Z"}],"updatedAt":"2026-11-30T16:32:18.829Z","epss":{"score":0.00176,"percentile":0.07486,"date":"2026-12-01T12:00:22.000Z"}}