Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInfluence width of frame sent to XWD encoder
-
ExploitPadded scanline size exceeds packed row size
-
ExecutionEncoder reads past end of frame buffer
-
ImpactLeak 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (AISLE).
CVSS VectorVendor: AISLE
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
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
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
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
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
EUVD-2026-137206
GHSA-xgxc-wj9p-wmwj
NVD
CVE.org
EPSS
Exploit-DB