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.
Published: 2026-11-09
Score: 7.3 High
EPSS: n/a
KEV: No
Impact: Memory Corruption / Denial of Service
Action: Immediate Patch
AI Analysis

Impact

The flaw is a heap buffer overflow in the VideoToolbox encoder of FFmpeg versions up to 9.0.2. The encoder copies frames larger than the configured dimensions into undersized image buffers, allowing crafted media to overflow a heap buffer. This can overwrite adjacent memory, leading to application crashes or, if exploited carefully, arbitrary code execution. The vulnerability requires the attacker to provide a media stream whose resolution grows during processing, taken advantage of when the encoder does not perform rescaling.

Affected Systems

FFmpeg releases up to and including version 9.0.2 are affected. Users running FFmpeg on any platform that utilizes the VideoToolbox encoder for media transcoding are at risk, as the CPE indicates all FFmpeg installations may be impacted.

Risk and Exploitability

The CVSS score of 7.3 reflects moderate severity. EPSS data is unavailable, so the likelihood of exploitation cannot be quantified currently. The vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be local or remote media processing, as the exploit requires feeding a crafted media file to FFmpeg during transcoding. An attacker who can influence FFmpeg's input channel can trigger the overflow, potentially causing a crash or memory corruption that may lead to code execution if the attacker can manipulate the overwritten heap content.

Generated by OpenCVE AI on November 9, 2026 at 21:08 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to a version newer than 9.0.2 that incorporates the VideoToolbox buffer overflow fix.
  • If an update is not immediately possible, disable the VideoToolbox encoder in FFmpeg or enforce strict input resolution limits before encoding.
  • Validate all media input streams for resolution changes and reject or rescale streams that exceed the configured encoder bounds.

Generated by OpenCVE AI on November 9, 2026 at 21:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 19:15:00 +0000

Type Values Removed Values Added
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.
Title FFmpeg through 9.0.2 Heap Buffer Overflow via VideoToolbox Encoder
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-122
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.3, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-09T19:11:28.821Z

Reserved: 2026-11-09T18:15:16.340Z

Link: CVE-2026-125212

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T19:16:58.100

Modified: 2026-11-09T19:16:58.100

Link: CVE-2026-125212

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T21:15:14Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow