Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Vulnerabilities

CVE-2026-125212 — FFmpeg

High · CVSS 7.3EPSS 0.2% First seen November 09, 2026

One of 121 FFmpeg vulnerabilities published together by NVD.

Vulnerabilities

Analysis

CVE-2026-125212: FFmpeg heap overflow in VideoToolbox encoder can crash apps or corrupt memory

FFmpeg through 9.0.2 has a high-severity (CVSS 7.3) heap buffer overflow in its VideoToolbox encoder, triggered by crafted input whose resolution changes mid-stream. The source material does not yet say which version fixes it or whether it is being exploited.

Key points

  • FFmpeg through 9.0.2 has a heap buffer overflow in its VideoToolbox encoder (CVE-2026-125212).
  • The bug is triggered when input resolution grows mid-stream and is transcoded without rescaling.
  • NVD rates it HIGH, CVSS 7.3; impact includes application crashes and memory corruption.
  • No fixed version or exploitation status has been published in the source material.

What's affected

NVD describes CVE-2026-125212 as a heap buffer overflow in libavcodec/videotoolboxenc.c, the FFmpeg code path that uses VideoToolbox encoders. The flaw affects FFmpeg through version 9.0.2. When a frame is larger than the dimensions the encoder was set up for, the frame is copied into CVPixelBuffers that are too small to hold it.

The bug is reached only in a specific case. The input stream's resolution has to grow partway through, and the stream has to be transcoded with a VideoToolbox encoder without rescaling. Systems that transcode untrusted media in this configuration are the most exposed. Configurations that do not use VideoToolbox encoders are not described as affected.

How serious is it

The NVD entry rates the issue HIGH with a CVSS score of 7.3. According to the description, an attacker who can supply crafted input can crash the application or corrupt memory. Memory corruption in a media processing tool is significant because FFmpeg is often run automatically on files from outside sources, such as uploads or streams, so a single malicious file may be enough to cause harm.

Is it being exploited?

The source material does not state whether this vulnerability has been exploited in the wild. Treat that as unknown rather than as confirmed absent.

Fix status

No fixed version, vendor advisory, or patch is named in the source material. Until one is published, the only version-independent step is to change how the affected encoder is used.

What to do

First, find out whether any systems run FFmpeg 9.0.2 or earlier with VideoToolbox encoders. Second, stop transcoding untrusted input through those encoders without rescaling, or add a rescaling step so frame sizes stay within the encoder's configured dimensions. Third, check FFmpeg upstream and your OS or packaging vendor for a fixed build, and update as soon as one is available. Finally, watch transcoding workers for unexpected crashes or abnormal memory behavior, since those may indicate attempted exploitation.

Recommended actions

  1. Identify systems running FFmpeg 9.0.2 or earlier that use VideoToolbox encoders.
  2. Stop transcoding untrusted input through VideoToolbox encoders without rescaling, or add a rescaling step.
  3. Check FFmpeg upstream and your vendor for a fixed build and apply it when available.
  4. Monitor transcoding workers for crashes or unusual memory behavior.

Written with AI assistance from the sources listed on this page; check the vendor advisory before acting.

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 7.3 CVSS 4.0 base score from the CNA (vulncheck.com)

An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.

Attack from
local access (a logged-in user, or a malicious file opened on the device)
Attack complexity
high (only works under specific conditions)
Special conditions
only in some setups or conditions
Login needed
no
User action needed
yes, a user must view or visit something
Impact
high on confidentiality, integrity and availability
Impact on other systems
none

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 7.0 from the CNA (vulncheck.com): CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Weakness

  • CWE-122: Heap-based Buffer Overflow

Affected and fixed versions

ProductAffected versionsFixed in
FFmpeg≤ 9.0.2—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Patches and fixed releases

Other references

Details from NVD (public domain).

Affected

  • FFmpeg

What to do

  • Check whether you run an affected product or version and apply the vendor's update or mitigation.
  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-125212?

FFmpeg through 9.0.2 has a high-severity (CVSS 7.3) heap buffer overflow in its VideoToolbox encoder, triggered by crafted input whose resolution changes mid-stream. The source material does not yet say which version fixes it or whether it is being exploited. Weakness type: Heap-based Buffer Overflow (CWE-122).

How severe is CVE-2026-125212?

CVE-2026-125212 has a CVSS 4.0 base score of 7.3 (high), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.

Is CVE-2026-125212 being exploited?

Not as far as is known: CVE-2026-125212 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-125212?

FFmpeg ≤ 9.0.2.

How do I fix CVE-2026-125212?

Identify systems running FFmpeg 9.0.2 or earlier that use VideoToolbox encoders. Stop transcoding untrusted input through VideoToolbox encoders without rescaling, or add a rescaling step. Check FFmpeg upstream and your vendor for a fixed build and apply it when available.

Timeline & sources

References