Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft tiny-dimension video file
-
DeliverySubmit to FFmpeg huffyuv/ffvhuff transcode
-
ExploitMedian predictor runs without dimension check
-
ExecutionNegative sub_median_pred length causes OOB read/write
-
ImpactEncoder 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
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
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.
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
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.
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.
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-120179
GHSA-fvv9-x4pm-v3vq
NVD
CVE.org
EPSS
Exploit-DB