---
title: "CVE-2026-125235: FFmpeg - Buffer Overflow"
description: "FFmpeg through 9.0.2 contains a heap overflow caused by reuse of an undersized pooled QSVFrame buffer in libavcodec/qsvenc.c, letting attackers corrupt memory or crash the application by supplying crafted input with increasing resolution mid-stream, exploit requires crafted input with resolution growth."
url: https://panop.io/threat-heartbeat/CVE-2026-125235/
---

# CVE-2026-125235 FFmpeg - Buffer Overflow

FFmpeg through 9.0.2 contains a heap overflow caused by reuse of an undersized pooled QSVFrame buffer in libavcodec/qsvenc.c, letting attackers corrupt memory or crash the application by supplying crafted input with increasing resolution mid-stream, exploit requires crafted input with resolution growth.

CVSS base score 7.0 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

EPSS

0.13% chance of exploitation in 30 days

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-125235)

## Details

Type

Buffer Overflow

Impact

Denial Of Service, Remote Code Execution

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Published

9 November 2026

Updated

11 November 2026

Weakness

[CWE-122](https://cwe.mitre.org/data/definitions/122.html)

## Vendor fix

Update to the latest version of FFmpeg.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-125235](https://nvd.nist.gov/vuln/detail/CVE-2026-125235)
- [https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-overflow-via-qsv-encoder-submit-frame](https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-overflow-via-qsv-encoder-submit-frame)
- [https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25682](https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25682)
- [https://github.com/FFmpeg/FFmpeg](https://github.com/FFmpeg/FFmpeg)
- [https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/qsvenc.c#L2081](https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/qsvenc.c#L2081)
- [https://github.com/FFmpeg/FFmpeg/commit/9b99973b2bbecee0b7e1e57035b95498b42f54a6](https://github.com/FFmpeg/FFmpeg/commit/9b99973b2bbecee0b7e1e57035b95498b42f54a6)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
