CVE-2026-137911: FFmpeg before 9.1 Out-of-Bounds Read via XWD Encoder Scanline Padding

Published Nov 27, 2026
·
Updated

FFmpeg before 9.1 contains an out-of-bounds read vulnerability in xwdencodeframe() 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.

Affected Software

1 affected component
FFmpeg FFmpeg<9.1

Event History

Nov 27, 2026
CVE Published
via MITRE·12:15 PM
Data Sourced
via MITRE·12:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which uses are exposed to this issue?

Applications using FFmpeg to encode RGB24 or BGR24 frames into XWD are affected when they supply tightly packed frame buffers. The issue is in the XWD encoder path, not merely in decoding or processing XWD files.

2

What does an attacker need to control?

An attacker needs to control the width of video encoded to XWD by the application. Exploitation also depends on the application supplying tightly packed frames to the encoder.

3

Are the consequences limited to a crash?

No. The out-of-bounds read can crash the application, and data read past the frame buffer may be included in the generated XWD image, potentially exposing heap contents.

4

What versions need remediation?

FFmpeg versions before 9.1 are affected according to the provided information. Update to FFmpeg 9.1 or later where possible.

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