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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"ffmpeg:ffmpeg": [
"<= 9.0.2"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125250",
"id": "CVE-2026-125250",
"imported": "2026-12-02T20:13:53.468Z",
"modified": "2026-11-30T16:22:13.463Z",
"published": "2026-11-09T19:17:03.883Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-125250"
},
{
"html_url": "https://github.com/advisories/GHSA-gm97-rxv6-cv4g",
"id": "GHSA-gm97-rxv6-cv4g",
"imported": "2026-12-02T20:16:08.928Z",
"modified": "2026-11-09T21:32:03Z",
"published": "2026-11-09T21:32:03Z",
"url": "https://api.github.com/advisories/GHSA-gm97-rxv6-cv4g"
},
{
"affected": {
"FFMPEG:FFmpeg": [
"0 ≤9.0.2"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-120200",
"id": "EUVD-2026-120200",
"imported": "2026-12-02T20:13:54.770Z",
"modified": "2026-11-13T13:03:18Z",
"published": "2026-11-09T19:11:56Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-120200"
}
]
}