Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft RGB video narrower than 8/16 pixels
-
DeliveryVictim transcodes it to Huffyuv on RVV RISC-V build
-
ExploitNegative length reaches ff_llvidenc_diff_bytes_rvv()
-
ExecutionOut-of-bounds write past encoder temp buffer
-
ImpactHeap corruption, possible code execution
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 a very specific stack: an FFmpeg build compiled with RISC-V Vector (RVV) support running on RISC-V hardware, using the Huffyuv encoder (huffyuv transcoding path), and an attacker-supplied RGB video whose width is narrower than 8 or 16 pixels, which drives ff_llvidenc_diff_bytes_rvv() to a negative length. The victim must actively process/transcode the malicious input (UI:P passive interaction), and access is local (AV:L), not remote/network. Limiting factors that reduce realistic risk: the RISC-V-with-RVV platform is uncommon in production, the vulnerable code path is specific to one codec/encoder, attack complexity is high (AC:H/AT:P), and no privileges are needed but the attack cannot proceed without the victim initiating the transcode. |
| Impact | This is a genuine but conditional memory-corruption flaw (CWE-787 out-of-bounds write) whose real-world urgency is lower than its 7.3 score suggests once the access constraints are weighed. The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P) tells a consistent story: exploitation is local, not network-reachable, requires a present attack condition (AT:P) and high complexity (AC:H), and depends on passive victim interaction (UI:P) - i.e. the victim must transcode attacker-supplied media. Impact is rated high across confidentiality, integrity and availability of the vulnerable system (VC:H/VI:H/VA:H) with no scope change, which is plausible for a controlled heap overwrite. Exploitation status: no public exploit identified at time of analysis - the listed references are the vendor PR and the fix commit, not a PoC, and there is no CISA KEV listing. No EPSS score was supplied, so statistical exploitation probability cannot be cited. The strongest mitigating signal is the narrow trigger surface: only RVV-enabled RISC-V builds running the Huffyuv encoder are affected, which is a small fraction of real deployments. The vuln.today priority is 'this_week' and a vendor patch exists, so this warrants scheduled patching for anyone shipping RISC-V/RVV FFmpeg builds, but it is not a drop-everything emergency for the typical x86/ARM FFmpeg deployment, which does not reach the vulnerable code path. |
| Exploit ScenarioDerived | An attacker crafts an RGB video whose width is narrower than 8 or 16 pixels and gets a victim running an RVV-enabled RISC-V FFmpeg build to transcode it to Huffyuv. During encoding, ff_llvidenc_diff_bytes_rvv() computes a negative length and writes past the encoder's temporary heap buffer, corrupting adjacent heap memory and potentially enabling code execution within the FFmpeg process. No public weaponized exploit is known; attack complexity is high (AC:H) and exploitation requires local processing of the malicious file (passive user interaction). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
Heap buffer overflow in FFmpeg's Huffyuv encoder on RVV-enabled RISC-V builds allows heap memory corruption when a victim transcodes attacker-supplied RGB video narrower than 8 or 16 pixels; affected versions are through 9.0.2. The flaw requires local access, high attack complexity, and victim interaction, so practical risk is conditional on that uncommon platform and codec path; no public exploit identified at time of analysis, and a vendor patch is available.
RemediationAI
Apply the vendor fix for CVE-2026-125256; the upstream patch is commit 1f7bdea654a8a9a1761759e22d83943371cff21f (PR 25573), and the vendor advisory reports patch availability. No exact released patched version above 9.0.2 is stated in the supplied data, so confirm the fixed build with the vendor before deployment. Until the update is applied, avoid transcoding untrusted RGB video with the Huffyuv encoder on RVV-enabled RISC-V builds, which removes the reachable path; the trade-off is loss of Huffyuv transcoding for those inputs.
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
FFmpeg's RISC-V Vector (RVV) assembly implementation of ff_llvidenc_diff_bytes_rvv() in libavcodec/riscv/llvidencdsp_rvv.S handles byte-difference calculations for the Huffyuv encoder. The issue is an out-of-bounds write (CWE-787): the routine does not guard against negative length values, and the supplied fix adds a blez a3, 2f check to skip processing when the length is zero or negative. On RVV-enabled RISC-V builds, RGB input narrower than 8 or 16 pixels drives the negative length and writes past the encoder's temp buffer, corrupting heap memory. CPE data identifies FFmpeg as the affected package, with the advisory scoped to versions through 9.0.2; the assessed vector is local, high complexity, no privileges required, user interaction required, with high confidentiality, integrity, and availability impact.
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:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local-only RISC-V/RVV code path with narrow width trigger justifies AV:L and AC:H; victim must transcode the file so UI:R; heap overwrite can yield full process compromise, hence C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
FFmpeg through 9.0.2 contains a heap buffer overflow vulnerability in ff_llvidenc_diff_bytes_rvv() that allows attackers to corrupt heap memory by triggering negative length values in the Huffyuv encoder. Attackers can supply RGB video narrower than 8 or 16 pixels for huffyuv transcoding on RVV-enabled RISC-V builds, causing writes past the encoder's temp buffer.
Executive ViewAI
A heap buffer overflow vulnerability in FFmpeg's Huffyuv encoder on RISC-V builds with RVV extensions could allow memory corruption when transcoding attacker-supplied video, potentially leading to code execution or denial of service. This affects only organizations using RISC-V hardware with RVV and the Huffyuv codec in transcoding pipelines-a niche but growing platform in embedded and edge environments-so leadership should assess whether such systems are in use and prioritize patching where applicable.
Apply vendor patch.
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-120206
GHSA-4x88-99x2-vh7g
NVD
CVE.org
EPSS
Exploit-DB