CVE-2026-125212
Received Received - Intake

Heap Buffer Overflow in FFmpeg VideoToolbox Encoder

Vulnerability report for CVE-2026-125212, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-09

Last updated on: 2026-11-09

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-09
Last Modified
2026-11-09
Generated
2026-11-09
AI Q&A
2026-11-09
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
FFmpeg FFmpeg From 0 (inc) to 9.0.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-122 A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a heap buffer overflow in FFmpeg versions up to 9.0.2. It occurs in the VideoToolbox encoder component when frames larger than the encoder's dimensions are copied into undersized CVPixelBuffers. Attackers can exploit this by providing input whose resolution increases during processing, leading to crashes or memory corruption.

Detection Guidance

This vulnerability involves heap buffer overflow in FFmpeg's VideoToolbox encoder when processing frames larger than encoder dimensions. Detection requires monitoring FFmpeg processes for crashes or memory corruption during video encoding tasks. Check logs for segmentation faults or heap corruption errors in FFmpeg logs or system logs.

Impact Analysis

This vulnerability could allow attackers to crash applications using FFmpeg or corrupt memory, potentially leading to arbitrary code execution. Users processing media files with vulnerable FFmpeg versions may experience application failures or system instability.

Mitigation Strategies

Upgrade FFmpeg to the latest version beyond 9.0.2. Avoid using VideoToolbox encoders for untrusted input or implement input validation to ensure frame dimensions match encoder limits. Monitor FFmpeg processes for abnormal behavior during encoding tasks.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-125212. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...