Skip to main content

FFmpeg CVE-2026-125196

| EUVDEUVD-2026-120285 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-11-09 disclosure@vulncheck.com GHSA-7hrw-2r6j-2p3m
7.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Deliver crafted video with mid-stream resolution change
  2. Delivery
    Victim transcodes to APV via liboapv without rescale
  3. Exploit
    Oversized frame exceeds configured encoder dimensions
  4. Execution
    Attacker pixel data written past imgb plane buffers
  5. Impact
    Heap corruption and possible code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

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

Exploitation Conditions

Exploitation requires that the victim environment uses FFmpeg's liboapv APV encoder wrapper (liboapve_encode) as a transcode target and feeds it an attacker-supplied video whose resolution increases mid-stream, with no rescale/scale filter in the pipeline so the incoming frame dimensions exceed the configured encoder width/height. This is NOT remote-unauthenticated against a default install: FFmpeg must be built with liboapv support (non-default), an APV encode must actually be invoked, and a local user or automated service must process the malicious input (AV:L, UI:P). Limiting factors are the high attack complexity and specific attack requirement (AC:H/AT:P) - the crafted mid-stream resolution change and absence of rescaling - plus the niche, optional nature of the APV encoder, all of which substantially constrain realistic exposure despite PR:N.

Impact

The input CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P, score 7.3 High) and the description agree closely: this is not a remote, network-reachable flaw but a local, media-processing bug where a victim pipeline transcodes an attacker-supplied video. AV:L and UI:P mean the attacker cannot reach the code path unaided - a user or service must actually run an FFmpeg APV encode over the malicious input - and AC:H/AT:P reflect the specific precondition that the stream's resolution must change mid-stream while no rescale is applied. Impact metrics (VC/VI/VA:H) are consistent with a CWE-122 heap overflow writing attacker-controlled pixel data past the imgb plane buffers, which can mean memory corruption up to potential code execution in the encoding process. On the real-priority question, the signals point to meaningful-but-not-emergency: the vuln.today priority is 'this_week' (not act_now/emergency), no EPSS score was supplied, the CVE is NOT listed in CISA KEV, and no public exploit is present in the references - so there is no evidence of active or at-scale exploitation. The practical risk is further narrowed because the vulnerable path is FFmpeg's optional liboapv (APV) encoder wrapper, which is rarely compiled in and rarely used as a transcode target. Net: a genuine high-severity memory-corruption bug worth patching on a normal schedule, but the local vector, required user/pipeline action, high attack complexity, and niche encoder make widespread opportunistic exploitation unlikely. Missing data to flag: EPSS probability is absent and PoC/exploit status is unconfirmed from the provided references.

Exploit ScenarioDerived

An operator or automated service transcodes an untrusted, attacker-supplied video to APV using FFmpeg's liboapv encoder without a scaling filter in the chain. The attacker crafts the file so its frame resolution grows mid-stream beyond the dimensions the encoder was configured with, causing liboapve_encode() to copy oversized, attacker-controlled pixel data past the allocated imgb plane buffers and corrupt the heap. No public exploit code is identified in the provided sources, so this remains a described flaw rather than a demonstrated weaponized exploit.

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

Heap buffer overflow in FFmpeg's liboapv APV encoder wrapper (liboapve_encode) lets an attacker-supplied video write attacker-controlled pixel data past the imgb plane buffers when its resolution grows mid-stream and the stream is transcoded to APV with no rescale filter in the pipeline. Versions through 9.0.2 are affected, but only builds compiled with liboapv support expose the code path, and the CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P, 7.3 High) plus an independent 3.1 assessment (AV:L/AC:H/PR:N/UI:R) frame this as a constrained local media-processing bug rather than a network-reachable flaw. No confirmed active exploitation (not in CISA KEV) and no public exploit identified at time of analysis; priority is this_week.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply commit 87cdb6cd6a8d1ec201cb82b30e64d5f946939e23 from FFmpeg pull request 25416 and rebuild, or move to a release that already contains it. Where immediate rebuilding is not possible, two compensating controls reduce exposure: force frame geometry to match the encoder configuration by inserting an explicit scale filter (or otherwise rejecting mid-stream resolution changes) ahead of the APV encoder, which costs CPU time and resamples the video; or build FFmpeg without liboapv / avoid using APV as a transcode target for untrusted inputs, which removes APV encode capability entirely. Because the vulnerable path only triggers with the liboapv wrapper, confirming whether it is compiled in is a useful scoping step before patching; the vendor advisory and commit are the authoritative references.

Affected VersionsENISA

FFmpeg 8.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

The flaw is a CWE-122 heap-based buffer overflow in libavcodec/liboapvenc.c, inside the liboapv wrapper that lets FFmpeg encode to the APV format. The encoder allocates its imgb plane buffers according to the dimensions configured on the codec context, but the vulnerable code path derived the geometry from the incoming AVFrame instead: the upstream fix (commit 87cdb6cd6a8d1ec201cb82b30e64d5f946939e23) replaces frame->format, frame->width and frame->height with avctx->pix_fmt, avctx->width and avctx->height in liboapve_encode(). When a container supplies a video whose resolution increases mid-stream and no scale filter is present, the frame arriving at the encoder is larger than the buffers sized for the configured output, so pixel data is written past the end of the imgb planes and heap memory is corrupted. Exploitation therefore depends on a specific combination: an FFmpeg build with the optional liboapv dependency enabled, a transcode actually targeting the APV encoder, and an input pipeline that passes the resolution change through unrescaled - conditions reflected in the high attack complexity and specific attack requirement (AC:H/AT:P) of the assessed vectors. The trigger beyond the mid-stream resolution change is not described in the available sources.

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 7.3 HIGH
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
vuln.today AI 7.0 HIGH

Local media-processing bug needing a victim to transcode attacker input (AV:L/UI:R), with a specific mid-stream resolution precondition (AC:H) and no privileges (PR:N); heap corruption yields full C/I/A:H.

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

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
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 a heap buffer overflow vulnerability in liboapve_encode() in libavcodec/liboapvenc.c that allows attackers to corrupt heap memory by supplying frames larger than the configured encoder dimensions. Attackers can craft videos whose resolution changes mid-stream so that transcoding to APV without rescaling writes attacker-controlled pixel data past the imgb plane buffers.

Executive ViewAI

Why It Matters

A high-severity memory safety flaw in FFmpeg's APV encoding path could let attacker-supplied video content corrupt memory on systems that transcode media, potentially causing crashes or code execution on affected build configurations. Leadership should care because media-processing pipelines are a common ingestion point and, while the flaw requires local conditions to trigger and only affects builds compiled with APV encoder support, unpatched media infrastructure may face availability and integrity risk. There is no indication of active exploitation at this time.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable APV encoder support (rebuild without liboapv) or avoid transcoding to APV, enforce a rescale filter before APV encoding to prevent mid-stream resolution changes, restrict processing of untrusted media to isolated/sandboxed hosts, and monitor for crashes or anomalous behavior in media pipelines.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
FFmpeg is ubiquitous, but the liboapv APV encoder is optional and rarely enabled
Data Quality
5 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 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

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

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

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