JLSEC-2026-2163: FFmpeg through 9.0.2 contains a heap buffer overflow in the GIF encoder's gif_image_write_image()...

Published Dec 2, 2026
·
Updated

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

2 affected componentsFixes available
julia/ffmpeg_jll<9.1.0+0
9.1.0+0
julia/ffmpeg_nogpl_jll<9.1.0+0
9.1.0+0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade julia/FFMPEG_jll to a version that resolves this vulnerability.

    Fixed in 9.1.0+0
  2. Upgrade

    Upgrade julia/FFMPEG_nogpl_jll to a version that resolves this vulnerability.

    Fixed in 9.1.0+0

Event History

Dec 2, 2026
Advisory Published
via OSV·09:05 PM
Data Sourced
via OSV·09:05 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

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.

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203