Skip to main content

FFmpeg CVE-2026-137911

| EUVDEUVD-2026-137206 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-27 AISLE GHSA-xgxc-wj9p-wmwj
5.8
CVSS 4.0 · Vendor: AISLE
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Influence width of frame sent to XWD encoder
  2. Exploit
    Padded scanline size exceeds packed row size
  3. Execution
    Encoder reads past end of frame buffer
  4. Impact
    Leak heap bytes into output image or crash application

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of the following: the embedding application must invoke FFmpeg's XWD encoder (xwd_encode_frame in libavcodec/xwdenc.c); the frames supplied to it must be tightly packed (no scanline padding) in RGB24 or BGR24 pixel format; and the attacker must be able to control the width of the video being encoded so that the padded XWD scanline size exceeds the actual pixel row size. Limiting factors that reduce realistic risk: the CVSS vector is local (AV:L) with high attack complexity (AC:H), a present attack requirement (AT:P) and passive user interaction (UI:P), meaning the condition is not reachable in default FFmpeg usage unless the application is specifically configured to produce XWD output from attacker-influenced, tightly-packed frames; only the RGB24/BGR24 code paths are affected; and impact is confined to a heap information leak (low) and application crash rather than code execution.

Impact

This is a genuine but modest-priority memory-safety flaw. The supplied CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P) and base score of 5.8 (medium) describe a local, hard-to-reach condition rather than a remotely sprayable bug: exploitation requires high attack complexity (AC:H), a specific attack requirement to be met (AT:P), and passive user interaction (UI:P), i.e. an application must actually drive FFmpeg's XWD encoder over attacker-influenced frames. No EPSS score was supplied, the CVE is not listed in CISA KEV, and no proof-of-concept or exploit reference is present in the input - only patch/commit references. The vuln.today decision label is 'this_month' (not act_now/emergency), which aligns with the picture of a real-but-not-urgent defect. Impact is dominated by availability (VA:H, application crash) with only a low confidentiality component (VC:L) from heap bytes bleeding into the output image; there is no integrity impact. Net: a legitimate out-of-bounds read worth patching on a normal cycle, not a high-CVSS-masquerading-as-critical emergency and not a widely-exploitable network vulnerability. One caveat to verify: the input vector asserts PR:N (unauthenticated), yet real-world reachability hinges entirely on how the embedding application exposes XWD encoding and width control, so effective exploitability is application-specific rather than universal.

Exploit ScenarioDerived

An application that uses FFmpeg to encode tightly packed RGB24 or BGR24 frames into XWD format allows an attacker to influence the video width. By choosing a width whose padded XWD scanline size exceeds the actual packed pixel row, the attacker makes xwd_encode_frame() copy past the end of the frame buffer, either crashing the application (denial of service) or embedding adjacent heap contents into the produced XWD image (information disclosure). No public exploit was identified at time of analysis; the available references are the fixing commit and pull request, not exploit code.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 27, 2026

Out-of-bounds read in FFmpeg's XWD encoder (xwd_encode_frame in libavcodec/xwdenc.c) can crash an application or leak heap memory into the encoded XWD image when an attacker controls the video width and the embedding application supplies tightly packed RGB24 or BGR24 frames. Affected versions are FFmpeg before 9.1; exploitation requires a local context, high complexity, a present attack requirement, and passive user interaction, and is not reachable in default FFmpeg usage unless the application is specifically configured to produce XWD output from attacker-influenced tightly packed frames. No public exploit was identified at time of analysis.

RemediationAI

Vendor-released patch: FFmpeg 9.1. Upgrade to FFmpeg 9.1 or later, which includes the fix in commit f26d201dd87f36e89ab77b5f689765604c9b06bc (pull request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25690). If upgrading is not immediately possible, avoid invoking the XWD encoder on attacker-influenced video widths; if XWD output is not required, build or configure FFmpeg without the XWD encoder (trade-off: removes XWD encoding capability), or ensure the embedding application supplies RGB24/BGR24 frames whose linesize is at least the padded XWD scanline size lsize (trade-off: higher memory use and application changes). Restricting XWD encoding to trusted, fixed-width inputs also reduces exposure but may not fit dynamic workloads.

Affected VersionsENISA

FFmpeg 0 <9.1

Affected Packages

euvd ffmpeg fix: 9.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is an out-of-bounds read (CWE-125) in FFmpeg's XWD encoder. In xwd_encode_frame(), the code computes an XWD padded scanline size (lsize) but, for RGB24 and BGR24 pixel formats, copies each row using lsize bytes from the source frame. When the source frame is tightly packed (linesize equal to the pixel row size), lsize can exceed the actual row bytes, so the encoder reads past the frame buffer. The upstream fix introduces row_bytes = (bpp * avctx->width + 7) / 8, copies only row_bytes, and zero-fills the remaining lsize - row_bytes bytes of padding before advancing the output pointer. The CPE cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:* covers the FFmpeg product; the vulnerable path is limited to the XWD encoder and only the RGB24/BGR24 code paths. The trigger requires an application that invokes this encoder with attacker-controlled width and tightly packed frames; the CVSS 4.0 and independent 3.1 vectors characterize it as local, high complexity, with a present attack requirement and passive user interaction.

Know when Ffmpeg gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (AISLE) PRIMARY 5.8 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Local, application-configuration-dependent XWD encoding of tightly-packed frames with attacker-controlled width justifies AV:L and AC:H with UI:R; no FFmpeg privileges needed (PR:N); heap leak is C:L and the crash is A:H, with no integrity impact.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (AISLE).

CVSS VectorVendor: AISLE

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 27, 2026 - 14:01 EUVD
CVE Published
Nov 27, 2026 - 12:15 cve.org
MEDIUM 5.8

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded across a vast range of media apps, servers and platforms
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Ffmpeg

View all
CVE-2016-1897 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol

CVE-2017-9993 HIGH
7.5 Jun 28

FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restric

CVE-2016-1898 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco

CVE-2013-4265 CRITICAL POC
10.0 Nov 23

The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re

CVE-2020-12284 CRITICAL POC
9.8 Apr 28

cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MA

CVE-2026-58049 HIGH POC
8.8 Jun 28

Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m

CVE-2026-30754 HIGH POC
8.8 Sep 08

Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap

CVE-2025-25469 HIGH POC
8.8 Feb 18

Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled

CVE-2021-38094 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker

CVE-2021-38093 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke

CVE-2021-38092 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

CVE-2021-38091 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy