CVE-2026-137911
Awaiting Analysis Awaiting Analysis - Queue

Out-of-Bounds Read in FFmpeg XWD Encoder

Vulnerability report for CVE-2026-137911, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-27

Last updated on: 2026-11-27

Assigner: 1a4f025a-074d-4105-b4e2-52bd8eabe2ea

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-27
Last Modified
2026-11-27
Generated
2026-11-27
AI Q&A
2026-11-27
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
FFmpeg FFmpeg From 0 (inc) to 9.1 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an out-of-bounds read in FFmpeg's XWD encoder. It occurs in the xwd_encode_frame() function where the code incorrectly uses the padded XWD scanline size instead of the actual pixel row size when copying RGB24 or BGR24 frames. Attackers can exploit this by controlling the video width to make the encoder read past the frame buffer, causing crashes or leaking heap contents into the output image.

Detection Guidance

To detect this vulnerability, check if your FFmpeg version is before 9.1. Run ffmpeg -version to verify the installed version. If it is below 9.1, the system is potentially vulnerable. Additionally, monitor for crashes or unexpected behavior when processing XWD-encoded video files.

Impact Analysis

This vulnerability can crash applications using FFmpeg to encode XWD images, potentially leading to denial of service. It may also expose sensitive memory contents in the output image, posing privacy risks. Systems processing untrusted video files are most at risk.

Compliance Impact

This vulnerability may lead to information disclosure if heap contents are leaked into output images, potentially violating data protection requirements under GDPR or HIPAA. Unauthorized access to memory could expose sensitive data, impacting confidentiality controls.

Mitigation Strategies

Immediately update FFmpeg to version 9.1 or later to patch the out-of-bounds read vulnerability. If updating is not possible, avoid processing XWD-encoded video files from untrusted sources until the update is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-137911. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...