Skip to main content

FFmpeg EUVDEUVD-2026-120301

| CVE-2026-125212 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-11-09 disclosure@vulncheck.com GHSA-pcv3-vw2j-h73r
7.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Craft media with mid-stream resolution growth
  2. Delivery
    Victim transcodes input via VideoToolbox encoder
  3. Exploit
    Oversized frame copied into undersized CVPixelBuffer
  4. Execution
    Heap buffer overflow in libavcodec/videotoolboxenc.c
  5. Impact
    Application crash or memory corruption

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 an FFmpeg build using Apple's VideoToolbox hardware encoder (macOS/iOS), with attacker-supplied input being transcoded through that encoder without rescaling. The specific trigger is input whose resolution increases mid-stream to dimensions larger than those the VideoToolbox encoder (and its CVPixelBuffer) was initialized with, per the description. Limiting factors that reduce real-world risk: the vector is local (AV:L), a victim must initiate the transcode (UI:P), the mid-stream resolution-growth requirement raises complexity (AC:H/AT:P), and non-Apple builds or pipelines that rescale frames to the encoder dimensions are not affected.

Impact

The input CVSS 4.0 vector (7.3, High) describes a locally-reachable issue: AV:L (local attack vector), AC:H and AT:P (a specific, non-trivial condition must hold), PR:N (no privileges required), and UI:P (user interaction/passive involvement needed). These severity signals point to meaningful but non-trivial-to-reach impact rather than remote mass exploitation. No EPSS score was provided, the CVE is not listed in CISA KEV, and no proof-of-concept or exploit reference appears in the supplied data - only a VulnCheck advisory, the upstream repo, the source line, and the fixing commit. Exploitation status is therefore: no public exploit identified at time of analysis. The vuln.today Decision label is 'this_week', consistent with a patch-in-the-near-term priority rather than act_now/emergency. The realistic risk is further constrained because the flawed code path is FFmpeg's Apple VideoToolbox encoder, so only macOS/iOS builds using that encoder are affected; combined with the local vector, required user-initiated transcode, and the mid-stream resolution-growth trigger, this reads as a genuine memory-safety bug warranting timely patching but not a widespread, automatable, internet-facing emergency. Note: PR:N indicates no authentication is required, but the local vector plus UI:P means an attacker must still get a victim to process crafted input.

Exploit ScenarioDerived

An attacker crafts a media file whose encoded resolution grows partway through the stream and induces a victim to transcode it with FFmpeg's VideoToolbox encoder on macOS/iOS without rescaling. The oversized frame is copied into a CVPixelBuffer sized for the encoder's original (smaller) dimensions, overflowing the heap and crashing the process or corrupting memory. No public exploit code was identified in the provided data.

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 VideoToolbox hardware encoder wrapper (libavcodec/videotoolboxenc.c), affecting builds through 9.0.2 that run on Apple platforms (macOS/iOS) and transcode frames without rescaling. A crafted media file whose resolution increases mid-stream causes a frame larger than the encoder's initialized dimensions to be copied into an undersized CVPixelBuffer, crashing the transcoding process or corrupting heap memory with high confidentiality, integrity and availability impact. The assessed vector is local (AV:L) with a high-complexity, specific trigger (AC:H/AT:P), no privileges required (PR:N) and passive user interaction (UI:P), and no public exploit has been identified at time of analysis.

RemediationAI

Update to an FFmpeg revision that contains upstream commit 9b99973b2bbecee0b7e1e57035b95498b42f54a6 (pull request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25682), which corrects the frame-dimension check in libavcodec/encode.c; the fix is available as an upstream commit and pull request, but a specific tagged patched release version is not independently confirmed in the supplied data, so verify the commit is present in the build or package you deploy. Because exploitation requires a VideoToolbox transcode of a resolution-changing input, the most direct compensating control is to force a fixed output geometry before encoding (for example an explicit scale/crop filter so every frame matches the encoder dimensions); the trade-off is added CPU cost and loss of variable-resolution output. Organizations that cannot rebuild immediately can route untrusted media through software encoders (e.g. libx264/libx265) instead of VideoToolbox, at the cost of hardware acceleration, or limit transcoding of untrusted files on macOS/iOS hosts until the fix is in place.

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

VideoToolbox is Apple's hardware-accelerated video encode/decode framework, and FFmpeg's videotoolboxenc.c wraps it as an AVCodec encoder. When the encoder is opened, it is configured for a fixed frame width and height, and the corresponding CVPixelBuffer pool is allocated at those dimensions; each AVFrame handed to the encoder is copied into such a buffer. The cited bug (CWE-122, heap-based buffer overflow) means that when an input's resolution grows after the encoder session is initialized, the incoming frame is larger than the destination pixel buffer and the copy overflows the heap allocation. The upstream fix in libavcodec/encode.c commit 9b99973b2bbecee0b7e1e57035b95498b42f54a6 changes the frame/encoder dimension check from a strict less-than comparison to an inequality comparison, so any mismatch between the incoming frame and the codec context dimensions - including a mid-stream increase - is handled rather than passed through to the encoder. Only builds that include VideoToolbox encoder support and pipelines that feed variable-resolution frames to the encoder without rescaling are exposed; the trigger requires the victim to initiate the transcode of attacker-supplied content.

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 processing of crafted input with a specific mid-stream resolution-growth trigger (AC:H) and victim-initiated transcode (UI:R); heap corruption can crash the process or alter memory, so I:H/A:H with C:H for potential OOB disclosure/code execution.

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 libavcodec/videotoolboxenc.c that copies frames larger than encoder dimensions into undersized CVPixelBuffers. Attackers can supply crafted input whose resolution grows mid-stream, transcoded with VideoToolbox encoders without rescaling, to crash the application or corrupt memory.

Executive ViewAI

Why It Matters

A heap buffer overflow in FFmpeg's VideoToolbox encoder (CVE-2026-125212) affects macOS and iOS builds through 9.0.2, potentially causing memory corruption, data leakage, or crashes when processing malicious media files. Leadership should care because this vulnerability impacts content processing pipelines, employee devices, and any workflow that transcodes untrusted media, with high confidentiality, integrity, and availability impact.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: isolate media transcoding in sandboxed or containerized environments, disable VideoToolbox hardware encoding if feasible, validate media files against strict resolution-change rules before processing, and limit processing of untrusted media to low-privilege accounts.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
High
FFmpeg is ubiquitous, but the flaw affects only Apple VideoToolbox encoder builds
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

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