CVE-2026-125250
8.5high
FFmpeg through 9.0.2 GIF Encoder Heap Buffer Overflow via shrunk_buf Remap
- Severity
- 8.5high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.18% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| FFmpeg FFmpeg | up to 9.0.2 | CVE List, NVD |
All scores
| VulnCheck | 8.5high CVSS:4.0 | 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 |
| VulnCheck | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-125250 changed 2026-11-13 | CVE Terms of Use |
| NVD | CVE-2026-125250 changed 2026-11-30 | Public domain |