JLSEC-2026-2163: FFmpeg through 9.0.2 contains a heap buffer overflow in the GIF encoder's gif_image_write_image()...
FFmpeg through 9.0.2 contains a heap buffer overflow in the GIF encoder's gifimagewriteimage() in libavcodec/gif.c because shrunkbuf is sized from the first frame's linesize. Attackers can supply PAL8 video whose frame linesize grows mid-stream, causing remapframetopalette() to write past shrunkbuf and corrupt the heap during GIF transcoding.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/FFMPEG_jllto a version that resolves this vulnerability.Fixed in 9.1.0+0 - Upgrade
Upgrade
julia/FFMPEG_nogpl_jllto a version that resolves this vulnerability.Fixed in 9.1.0+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Who is exposed to this issue?
Deployments using julia/ffmpeg_jll or julia/ffmpeg_nogpl_jll are exposed when they transcode attacker-controlled PAL8 video to GIF. The vulnerable code is in FFmpeg through 9.0.2.
What does exploitation require?
An attacker needs to provide PAL8 video input whose frame linesize increases after the first frame and have it processed by GIF transcoding. The supplied severity vector indicates local attack vector, low complexity, no privileges required, and user interaction required.
What can happen if exploitation succeeds?
The overflow writes past the GIF encoder's heap buffer during palette remapping, corrupting heap memory. The reported impact includes high confidentiality, integrity, and availability effects.