Skip to main content

FFmpeg CVE-2026-125265

| EUVDEUVD-2026-120215 MEDIUM
Use After Free (CWE-416)
2026-11-09 VulnCheck GHSA-fq5x-phj3-f454
5.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft video with deliberate slice errors
  2. Delivery
    Deliver to NVDEC-enabled FFmpeg decoder
  3. Exploit
    Picture abandoned before end_frame, bitstream freed
  4. Execution
    cuvidDecodePicture reads stale pointer
  5. Impact
    Application crash or stale heap disclosure

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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 deployment (through 9.0.2) that is built with and actively using the NVIDIA NVDEC/CUVID hardware-accelerated decode path in libavcodec/nvdec.c; software-only decoders are not affected. The attacker must supply a crafted video that triggers a slice error causing the picture to be abandoned before end_frame, so that ctx->bitstream is not reset and cuvidDecodePicture() dereferences freed heap memory. Limiting factors: the victim must process the attacker-supplied media (UI:P), the vector is local (AV:L) rather than a direct network service, the trigger condition is non-trivial (AC:H/AT:P), and the realistic outcome is an application crash with possible low-fidelity stale-heap disclosure rather than code execution. No privileges are required (PR:N).

Impact

This is a medium-severity, defensively-triaged issue rather than an urgent priority. The supplied CVSS 4.0 vector (5.8) stacks multiple friction factors against exploitation: AV:L (local - the crafted media must be fed to a local decode pipeline), AC:H and AT:P (a specific slice-error condition that abandons a picture before end_frame must be met), and UI:P (a victim must process the attacker's file). Impact is dominated by availability (VA:H, an application crash) with only low confidentiality exposure (VC:L, stale heap contents) and no integrity impact. No CISA KEV listing is present and no EPSS score was provided, so no probabilistic or confirmed-exploitation signal supports elevation; the vuln.today decision label is 'this_month', not act_now/emergency. No confirmed working exploit code is indicated in the input. The single most important real-world limiter - not captured by the raw score - is that the vulnerable code lives in libavcodec/nvdec.c, so only FFmpeg builds that are actually using NVIDIA NVDEC/CUVID hardware decoding are exposed; software-only decode paths are unaffected. Net: patch within the normal maintenance cycle as the 'this_month' label implies; treat as a crash/info-leak hardening fix, not an emergency. Note that EPSS is missing from the input and could not be weighed.

Exploit ScenarioDerived

An attacker crafts a malicious video that deliberately induces a slice decoding error, causing a picture to be abandoned before end_frame while ctx->bitstream still points at freed heap memory. When a victim decodes this file on an FFmpeg build using NVIDIA NVDEC hardware acceleration, cuvidDecodePicture() reads the stale pointer, crashing the application or surfacing stale heap contents. No public exploit was identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 09, 2026

Heap use-after-free in FFmpeg (all versions through 9.0.2) affects only builds that use the NVIDIA NVDEC/CUVID hardware-accelerated decode path in libavcodec/nvdec.c; software-only decoders are not exposed. When a crafted video triggers a slice error that abandons a picture before end_frame, ff_nvdec_start_frame() fails to clear ctx->bitstream, so cuvidDecodePicture() later reads freed heap memory, crashing the host application and potentially surfacing stale heap contents in the output. The issue is rated medium severity (CVSS 4.0: 5.8; assessed CVSS 3.1: AV:L/AC:H/PR:N/UI:R, C:L/I:N/A:H), the trigger is non-trivial and requires the victim to process attacker-supplied media, and there is no CISA KEV listing or public exploit code identified at time of analysis.

RemediationAI

Apply the upstream fix in FFmpeg commit 03cd7851955c023f1ff4c8a495d47e996d01485a (PR https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25231), which sets ctx->bitstream = NULL in ff_nvdec_start_frame(); patch status is 'available from vendor', but because the listed reference is a source commit, a tagged release carrying the fix is not independently confirmed - rebuild against a tree that includes the commit or backport the one-line change to your vendored FFmpeg. Where rebuilding is not immediately possible, the practical compensating control is to avoid the NVDEC/CUVID path for untrusted media: force software decoding (for example by disabling hwaccel selection for the affected decoders in the application or CLI), which removes exposure entirely at the cost of higher CPU usage and loss of GPU-offload throughput. Restricting which media sources are fed to NVDEC-enabled decoders to trusted content also reduces exposure, but it is a policy control rather than a fix and depends on the consuming application's input handling. Consult the VulnCheck advisory (https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-use-after-free-via-nvdec-stale-bitstream-pointer) for vendor and third-party tracking details.

Affected VersionsENISA

FFmpeg 0 ≤9.0.2

Affected Packages

euvd ffmpeg no fix

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

libavcodec/nvdec.c is FFmpeg's thin wrapper around NVIDIA's CUVID/NVDEC hardware decoding API, used by the hwaccel framework to hand compressed bitstreams to the GPU decoder. ff_nvdec_start_frame() prepares an AVFrame and stores the current packet buffer in ctx->bitstream, which cuvidDecodePicture() later consumes; the corresponding teardown normally happens in end_frame. The root cause is CWE-416 (use-after-free): the error/slice-failure path abandons the picture before end_frame runs, leaving ctx->bitstream pointing at a bitstream buffer that has already been released, and a subsequent cuvidDecodePicture() dereferences that dangling pointer. The upstream fix (commit 03cd7851955c023f1ff4c8a495d47e996d01485a, PR 25231) adds a single 'ctx->bitstream = NULL;' assignment in ff_nvdec_start_frame() so each frame starts with a clean pointer. Because the defect lives in the NVDEC wrapper only, FFmpeg deployments using software decoders (or other hwaccels) do not reach the vulnerable code path; the CPE cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:* and EUVD range 'FFmpeg 0 through 9.0.2' reflect that the flaw is present in every release up to and including 9.0.2. The supplied evidence describes the mechanism as stale-pointer dereference after a slice error; it does not provide a proof-of-concept or demonstrate exploitation beyond memory corruption and crash.

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

Vendor (VulnCheck) PRIMARY 5.8 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Local crafted-file processing via the NVDEC path gives AV:L; the specific slice-error trigger justifies AC:H; victim must decode the file (UI:R); impact is a crash (A:H) with minor stale-heap leak (C:L), no integrity effect.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

FFmpeg through 9.0.2 contains a use-after-free vulnerability in libavcodec/nvdec.c because ff_nvdec_start_frame() fails to reset ctx->bitstream after slice errors. Attackers can supply crafted video that abandons a picture before end_frame, causing cuvidDecodePicture() to read freed heap memory, crashing applications or exposing stale heap contents.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Ubiquitous
FFmpeg/libavcodec underpins most media software; only NVDEC-enabled builds are vulnerable
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Ffmpeg

View all
CVE-2016-1897 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol

CVE-2017-9993 HIGH
7.5 Jun 28

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

CVE-2016-1898 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco

CVE-2013-4265 CRITICAL POC
10.0 Nov 23

The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re

CVE-2020-12284 CRITICAL POC
9.8 Apr 28

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

CVE-2026-58049 HIGH POC
8.8 Jun 28

Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m

CVE-2026-30754 HIGH POC
8.8 Sep 08

Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap

CVE-2025-25469 HIGH POC
8.8 Feb 18

Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled

CVE-2021-38094 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker

CVE-2021-38093 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke

CVE-2021-38092 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

CVE-2021-38091 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy