Vulnerability DatabaseCVE-2026-137911

CVE-2026-137911: 
Ffmpeg vulnerability analysis and mitigation

Overview

CVE-2026-137911 is an out-of-bounds read vulnerability in FFmpeg's XWD encoder (xwd_encode_frame() in libavcodec/xwdenc.c) affecting all versions before 9.1. The flaw causes the encoder to copy each RGB24 or BGR24 row using the padded XWD scanline size (lsize) instead of the actual pixel row size, potentially reading past the allocated frame buffer. It was published on November 27, 2026, with a patch committed the same day. The vulnerability carries a CVSS v3.1 base score of 5.3 (Medium) and a CVSS v4.0 base score of 5.8 (Medium) (Github Advisory, Feedly).

Technical details

The root cause is an out-of-bounds read (CWE-125) in the xwd_encode_frame() function within libavcodec/xwdenc.c. When encoding RGB24 or BGR24 pixel data to XWD format, the encoder calculates a padded scanline size (lsize = FFALIGN(bpp * width, bpad) / 8) and uses it directly in bytestream_put_buffer() to copy each row — but the actual pixel row may be smaller than lsize when frames are tightly packed, causing reads beyond the frame buffer boundary. An attacker who controls the video width passed to an application using FFmpeg for XWD encoding can trigger this condition. The fix (commit f26d201) introduces a separate row_bytes variable computed as (bpp * avctx->width + 7) / 8, copies only the actual pixel data, and zero-fills the remaining padding (FFmpeg Commit, Github Advisory).

Impact

Successful exploitation can result in two primary outcomes: application crash (denial of service) due to reading past the frame buffer, or leakage of heap memory contents embedded into the output XWD image file, which may expose sensitive in-memory data such as keys, credentials, or other process data. The vulnerability is local in scope and requires user interaction, limiting its reach to applications that accept attacker-controlled video width parameters and encode to XWD format. There is no integrity impact, and lateral movement potential is low, but heap content disclosure could facilitate further attacks (Github Advisory, Feedly).

Exploitability

No public proof-of-concept exploit code has been identified for this vulnerability. The EPSS score is approximately 0.195%, indicating a low near-term exploitation probability. Feedly threat intelligence notes an association with the ScanLine malware family, suggesting some degree of weaponization interest, though no confirmed in-the-wild exploitation events have been recorded (nvdSsvc exploitation status: "none"). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local access, high attack complexity, specific deployment conditions (tightly packed frames, attacker-controlled width), and user interaction, making opportunistic mass exploitation unlikely (Github Advisory, Feedly).

Exploitation steps

  1. Identify a target application: Find an application that uses FFmpeg (before version 9.1) to encode video to XWD format with RGB24 or BGR24 pixel format, and where the attacker can influence the video width parameter.
  2. Craft a malicious input: Prepare a video or frame source with a specific width value such that the padded XWD scanline size (lsize) exceeds the actual pixel row size, creating a gap that causes the encoder to read beyond the allocated frame buffer.
  3. Supply tightly packed frames: Ensure the input frames are tightly packed (i.e., linesize[0] equals the actual pixel row width in bytes, with no extra padding), maximizing the out-of-bounds read distance.
  4. Trigger encoding: Cause the target application to encode the crafted input to XWD format, invoking xwd_encode_frame() with the malicious width.
  5. Observe outcome: Depending on memory layout, the application may crash (DoS) or produce an XWD output image containing heap memory contents beyond the frame buffer, which can be retrieved and analyzed for sensitive data (FFmpeg Commit, Github Advisory).

Indicators of compromise

  • Process: Unexpected crashes or segmentation faults in applications invoking FFmpeg's XWD encoder, particularly when processing externally supplied video width parameters.
  • File System: XWD output image files with anomalous or larger-than-expected file sizes, or files containing apparent non-image binary data (heap artifacts) embedded in scanline rows.
  • Logs: Application error logs showing memory access violations or ASAN (AddressSanitizer) reports referencing xwdenc.c or xwd_encode_frame(); crash dumps from FFmpeg-linked processes.
  • Network: Unexpected exfiltration of XWD-format files to external destinations, which may contain embedded heap memory contents (FFmpeg Commit, Feedly).

Mitigation and workarounds

The primary remediation is to upgrade FFmpeg to version 9.1 or later, which includes the fix in commit f26d201 that correctly separates pixel row size from padded scanline size during XWD encoding. If immediate patching is not feasible, restrict or disable XWD format encoding in affected applications, or validate and sanitize video width parameters before passing them to the FFmpeg encoder. Organizations using FFmpeg as a library dependency should also check for transitive exposure through third-party software (Github Advisory, FFmpeg Commit).

Community reactions

The vulnerability was discovered by Joshua Rogers of AISLE and reported under identifier AISLE-2026-0150-00370, with the fix committed by FFmpeg developer michaelni. The Yocto Project security mailing list discussed the issue in the context of embedded Linux distributions that bundle FFmpeg. No significant broader media coverage or notable public researcher commentary beyond the patch and advisory has been identified (FFmpeg Commit, Feedly).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Ubuntu

Unknown

bionic (esm-apps)

ffmpeg

Unknown

devel

ffmpeg

Unknown

focal (esm-apps)

ffmpeg

Unknown

jammy

ffmpeg

Unknown

jammy (esm-apps)

ffmpeg

Unknown

noble

ffmpeg

Unknown

noble (esm-apps)

ffmpeg

Unknown

resolute

ffmpeg

Unknown

RHEL / CentOS

Unknown

Source: This report was generated using AI

Related Ffmpeg vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-144456MEDIUM6.8
  • Ffmpeg logoFfmpeg
  • libavdevice-free
NoYesDec 04, 2026
CVE-2025-71476MEDIUM6.8
  • Ffmpeg logoFfmpeg
  • libavutil-free-devel
NoYesNov 29, 2026
CVE-2025-71475MEDIUM6.8
  • Ffmpeg logoFfmpeg
  • ffmpeg
NoYesNov 29, 2026
CVE-2026-144455MEDIUM5.8
  • Ffmpeg logoFfmpeg
  • ffmpeg-free
NoYesDec 04, 2026
CVE-2026-137911MEDIUM5.8
  • Ffmpeg logoFfmpeg
  • libavcodec-free
NoYesNov 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management