Skip to main content

FFmpeg EUVDEUVD-2026-120179

| CVE-2026-125229 HIGH
Out-of-bounds Write (CWE-787)
2026-11-09 disclosure@vulncheck.com GHSA-fvv9-x4pm-v3vq
8.5
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Craft tiny-dimension video file
  2. Delivery
    Submit to FFmpeg huffyuv/ffvhuff transcode
  3. Exploit
    Median predictor runs without dimension check
  4. Execution
    Negative sub_median_pred length causes OOB read/write
  5. Impact
    Encoder memory corruption and crash

Vulnerability Assessment

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

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Exploitation requires the target to encode/transcode an attacker-supplied frame with sub-minimum dimensions (width < 4 pixels, e.g. a 2-pixel-wide frame, or height effectively 1-2 pixels after chroma shift) specifically to the huffyuv or ffvhuff encoder using the median predictor with version <= 2 - the exact condition the fix now rejects with 'Frame too small for the median predictor'. Limiting factors that reduce realistic risk: the local attack vector (AV:L) means the crafted file must reach a local encoding process; user or pipeline interaction is needed to start the transcode (UI:P); and huffyuv/ffvhuff with the median predictor is a non-default, uncommon output configuration, so typical deployments that never emit these codecs are unaffected.

Impact

The input CVSS 4.0 base score is 8.5 (High), but the signals point to a constrained, conditional flaw rather than a broadly urgent one. The vector is AV:L (the attacker must get a crafted file into a local encoding process) with UI:P (a user/pipeline must initiate the transcode), which sharply limits reach compared with a network-remote bug. No CISA KEV listing, EPSS probability, or public exploit is present in the provided data - so there is no public exploit identified at time of analysis, and exploitation status cannot be elevated to active or weaponized. The vuln.today priority is 'this_week' (not act_now/emergency), consistent with a real-but-not-critical issue. A key conflict: the input CVSS rates confidentiality, integrity and availability all High (VC:H/VI:H/VA:H), yet the source description and commit evidence only demonstrate out-of-bounds reads/writes that crash the encoder (a denial-of-service / memory-corruption outcome); code execution is plausible for a CWE-787 OOB write but is NOT demonstrated in the available sources - verify impact claims against the vendor advisory before assuming RCE. Real-world exposure is further narrowed because exploitation requires the victim to specifically encode to the huffyuv or ffvhuff codecs with the median predictor, which is an uncommon output configuration.

Exploit ScenarioDerived

An attacker crafts a tiny video (for example 2 pixels wide, or 1-2 pixels tall) and submits it to a service or user that transcodes it to huffyuv or ffvhuff. Because encode_init() never validates minimum frame dimensions for the median predictor, sub_median_pred lengths go negative and the encoder performs out-of-bounds reads and writes, crashing the process. No public exploit is identified in the provided data; given AV:L/AC:L, the crash is reliable once the crafted file reaches an affected encoder path.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 09, 2026

Transcoding an attacker-supplied tiny video into HuffYUV or FFVHuff with the median predictor can drive out-of-bounds reads and writes in FFmpeg's libavcodec/huffyuvenc.c, crashing the encoder and potentially corrupting memory. FFmpeg through 9.0.2 never validates minimum frame dimensions in encode_init(), so frames narrower than 4 pixels - or effectively 1-2 pixels tall after chroma shift - yield negative sub_median_pred lengths at encode_frame() time. Reaching the flaw requires a local encoding/transcoding process to ingest the crafted file and a non-default output configuration (huffyuv/ffvhuff, median predictor, version <= 2), which materially narrows real-world exposure compared with the 8.5 CVSS 4.0 base score; the independent assessment scores it AV:L/AC:L/PR:N/UI:R with limited confidentiality and integrity impact and high availability impact, and no public exploit code, KEV listing or EPSS data was identified in the supplied intelligence.

RemediationAI

Upstream fix is available as commit 45f98d0819efe2b7ce93e9034b7e6a4ed6700621 (PR https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25573), which adds a minimum-dimension check in encode_init() that returns AVERROR(EINVAL) when the median predictor is combined with version <= 2 and width < 4 or ceil-shifted height < 2 + interlaced; a released patched version number is not independently confirmed in the supplied data, so downstreams should track their distribution's backport of that commit rather than assume a specific release tag. Where the patch cannot be applied immediately, the actionable mitigation is to stop untrusted media from reaching the huffyuv/ffvhuff encoder with the median predictor: switch the encoder to a non-median predictor or to a different codec for untrusted transcode jobs, accepting the resulting change in output bitstream and compatibility, or reject inputs with width below 4 pixels and extremely small post-shift heights at the pipeline boundary, understanding that this duplicates the vendor check and is not equivalent to a fixed encoder. Restricting untrusted transcode jobs to isolated, resource-limited worker processes further reduces the availability impact of an encoder crash, but does not remove the memory-safety flaw itself. Advisory: https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-out-of-bounds-memory-access-in-huffyuv-ffvhuff-median-predictor. Given the this_week priority label, remediation should be scheduled in the current patch cycle.

Affected VersionsENISA

FFmpeg 0 ≤9.0.2

Affected Packages

euvd ffmpeg no fix

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

HuffYUV and its extended variant FFVHuff are lossless video codecs whose encoders in libavcodec/huffyuvenc.c apply a predictive filter before Huffman coding. The median predictor (predictor == MEDIAN, used with format versions <= 2) reconstructs each sample from its left, top and top-left neighbours, and the sub_median_pred length calculation assumes the frame is wide and tall enough for those neighbours to exist. Because encode_init() performed no dimension check, a frame with width below 4 pixels, or with height reduced to 1-2 lines after the chroma vertical shift (accounting for the interlaced flag), makes the computed run length negative, so the encoder reads and writes outside the intended plane buffers - the CWE-787 out-of-bounds write class, accompanied by out-of-bounds reads. The upstream fix in commit 45f98d0819efe2b7ce93e9034b7e6a4ed6700621 adds an encode_init() guard that rejects such configurations with AVERROR(EINVAL) and the message "Frame too small for the median predictor". The trigger is a dimension/predictor precondition rather than a timing or heap-grooming condition; CVSS metrics describe severity only, and the practical barrier is that the crafted media must reach a local encoder configured for these codecs.

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 (vulncheck) PRIMARY 8.5 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.6 MEDIUM

A locally-supplied file processed during transcode (AV:L, UI:R) reliably triggers (AC:L); demonstrated impact is a crash (A:H) with OOB read/write giving limited C/I (L), as RCE is not demonstrated.

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

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

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

DescriptionCVE.org

FFmpeg through 9.0.2 contains an out-of-bounds memory access vulnerability in the encode_frame() function of libavcodec/huffyuvenc.c, because encode_init() never validates minimum frame dimensions for the median predictor. Attackers can supply a tiny video, such as a 2-pixel-wide or 1-2-pixel-tall frame, that causes negative sub_median_pred lengths and out-of-bounds reads and writes when transcoded to huffyuv or ffvhuff, crashing the encoder.

Executive ViewAI

Why It Matters

A high-severity vulnerability in FFmpeg's HuffYUV/FFVHuff encoder could allow an attacker to crash encoding processes or corrupt memory when processing specially crafted small video files. While the attack requires local access and a non-default output configuration, the potential for service disruption and data integrity issues warrants management attention, especially for teams relying on FFmpeg for media processing.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Implement input validation to enforce minimum frame dimensions (width >= 4 pixels and height after chroma shift >= 4 pixels) before encoding; avoid using HuffYUV or FFVHuff with median predictor (version <= 2) for untrusted input; isolate encoding processes in sandboxed environments with limited privileges; monitor for crashes or anomalous behavior in encoding services.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Ubiquitous
FFmpeg/libavcodec underpins media processing across countless platforms and services
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
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.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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

Vendor StatusVendor

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