FFmpeg before 9.1 contains an out-of-bounds read vulnerability in xwd_encode_frame() in libavcodec/xwdenc.c that copies each RGB24 or BGR24 row using the padded XWD scanline size instead of the pixel row size. Attackers who control the width of video encoded to XWD by an application that supplies tightly packed frames can make the encoder read past the frame buffer, crashing the application or leaking heap contents into the output image.
CVE-2026-137911
CVSS base score
5.3 (v3.1)
Severity
MEDIUM
Attack vector
Local
Weakness
CWE-125
Last modified
December 3, 2026
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H
Affected products
ffmpeg ffmpeg
References
- code.ffmpeg.org Issue Tracking, Patch
- github.com Product
- github.com Patch
- github.com Patch