Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft media with mid-stream resolution growth
-
DeliveryVictim transcodes input via VideoToolbox encoder
-
ExploitOversized frame copied into undersized CVPixelBuffer
-
ExecutionHeap buffer overflow in libavcodec/videotoolboxenc.c
-
ImpactApplication 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. |
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 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
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
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
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 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.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
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.
Articles & Coverage 1
Executive ViewAI
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.
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
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.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
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-120301
GHSA-pcv3-vw2j-h73r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB