Skip to main content

FFmpeg CVE-2026-125203

| EUVDEUVD-2026-120292 HIGH
Out-of-bounds Write (CWE-787)
2026-11-09 disclosure@vulncheck.com GHSA-gc9x-4w7v-3282
8.5
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Deliver crafted RealMedia Cook file
  2. Delivery
    Victim app or pipeline decodes audio stream
  3. Exploit
    Overlapping subpacket channel masks evade validation
  4. Execution
    cook_decode_frame writes past output planes
  5. Impact
    Heap corruption enables crash or code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
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

Requires the victim application (or automated pipeline) to decode an attacker-supplied RealMedia file containing a Cook codec multichannel stream whose subpacket channel masks are non-disjoint (overlapping) - the missing validation that the masks' combined popcount equals the total subpacket channel count. The vulnerable code path is specifically the Cook multichannel decoder in libavcodec/cook.c; single-channel/non-overlapping Cook streams and other codecs are not affected. Limiting factors: the CVSS vector is local (AV:L) with passive user interaction (UI:P), so some action to process the malicious file is needed, and only FFmpeg before 8.1.3 and 9.x before 9.0.2 are affected - though server-side transcoding of untrusted uploads can satisfy the 'decode the file' precondition without direct human action.

Impact

This is a memory-corruption flaw (CWE-787, heap out-of-bounds write) in FFmpeg's Cook multichannel decoder, and the signals point to a credible but not emergency-grade priority. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, score 8.5) indicates a local attack vector that requires passive user interaction - i.e. the victim must decode an attacker-supplied file - with no privileges needed and high confidentiality, integrity and availability impact to the vulnerable process. No EPSS score was provided, the CVE is NOT in CISA KEV, and no public exploit code is referenced (the only external links are the fix commit, the upstream pull request, and the VulnCheck advisory). Exploitation status is therefore: no public exploit identified at time of analysis. The vuln.today decision label is 'this_week', consistent with a serious memory-safety bug in an extremely widely embedded library rather than an actively-exploited emergency. Note one tension to verify: although the vector is AV:L, FFmpeg frequently decodes untrusted media inside automated server-side transcoding and upload pipelines, which can make a file-parsing flaw reachable without a human opening anything - so the real-world reachability may exceed what AV:L/UI:P alone suggests.

Exploit ScenarioDerived

An attacker crafts a malicious RealMedia file containing a Cook multichannel audio stream whose subpacket channel masks overlap rather than being disjoint. When a victim opens or an automated pipeline decodes this file with a vulnerable FFmpeg/libavcodec build, cook_decode_frame() writes decoded samples past the allocated output planes, corrupting the heap and potentially enabling code execution or a crash. No public exploit code is identified; the fixing commit is public, which could aid reverse-engineering of the trigger.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 out-of-bounds write in FFmpeg's Cook multichannel decoder affects FFmpeg before 8.1.3 and 9.x before 9.0.2 when an application decodes a crafted RealMedia Cook stream whose subpacket channel masks overlap, allowing decoded samples to be written beyond allocated output planes and causing memory corruption with high confidentiality, integrity and availability impact inside the decoding process. The CVSS vector requires local access and user/passive interaction with PR:N, so no privileges are needed but a file must be processed; automated server-side transcoding of untrusted uploads can meet that precondition. It is not in CISA KEV and no public exploit was identified at time of analysis.

RemediationAI

Upgrade FFmpeg to 8.1.3 or 9.0.2 depending on branch; these are the fixed versions identified in the supplied data. The fixing commit 3e09f5e24eb277a6d011745ff03e602f61c5c171 adds validation in cook_decode_init that rejects a channel_mask whose popcount does not equal total_channels, so patched builds fail invalid Cook multichannel streams with AVERROR_INVALIDDATA. No vendor workaround is listed in the supplied references; as a compensating control, avoid decoding untrusted RealMedia/Cook multichannel inputs and restrict or isolate server-side transcoding pipelines that process attacker-supplied uploads, because decoding such a file is the trigger, but this does not remove the underlying bug. See https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24485, https://github.com/FFmpeg/FFmpeg/commit/3e09f5e24eb277a6d011745ff03e602f61c5c171, and https://www.vulncheck.com/advisories/ffmpeg-before-8.1.3-and-9-x-before-9.0.2-heap-buffer-overflow-in-cook-multichannel-decoder.

Affected VersionsENISA

FFmpeg 0 <8.1.3
FFmpeg 9.0 <9.0.2

Affected Packages

euvd ffmpeg fix: 8.1.3, 9.0.2

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

FFmpeg's Cook decoder handles RealAudio Cook multichannel streams in libavcodec/cook.c. The decoder uses subpacket channel masks to map decoded samples into output channel planes; before the fix it did not verify that the channel mask population count matched the total subpacket channel count, so overlapping/non-disjoint masks could cause cook_decode_frame() to write beyond the allocated planes. This is CWE-787 (out-of-bounds write) in heap memory. The supplied commit 3e09f5e24eb277a6d011745ff03e602f61c5c171 adds a check in cook_decode_init that rejects a channel_mask when av_popcount(channel_mask) != total_channels, returning AVERROR_INVALIDDATA; the referenced vulnerable line is in n9.0.1 at libavcodec/cook.c#L1294. Single-channel or non-overlapping Cook streams and other codecs are not implicated by this fix.

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 8.5 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.8 HIGH

The victim must decode a crafted file, so AV:L and UI:R with no privileges (PR:N); a controlled heap out-of-bounds write supports high C/I/A within the decoding process (S:U).

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

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

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

Lifecycle Timeline

2
Patch available
Nov 09, 2026 - 20:03 EUVD
CVE Published
Nov 09, 2026 - 19:16 cve.org
HIGH 8.5

DescriptionCVE.org

FFmpeg before 8.1.3 and 9.x before 9.0.2 contains a heap buffer overflow vulnerability in the Cook multichannel decoder in libavcodec/cook.c that fails to verify subpacket channel masks are disjoint. Attackers can supply a crafted RealMedia Cook stream with overlapping subpacket masks, causing cook_decode_frame() to write decoded samples beyond allocated output planes in any application decoding the file.

Executive ViewAI

Why It Matters

A high-severity memory corruption flaw in FFmpeg's Cook decoder affects any product or service that processes RealMedia audio, potentially enabling arbitrary code execution or data leakage during transcoding. Leadership should prioritize this because untrusted media uploads are common in customer-facing platforms, and a compromise could result in service disruption, data exposure, and reputational damage.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include disabling the Cook decoder in FFmpeg configurations, blocking or sanitizing RealMedia files at upload, running media processing in isolated environments with least privilege, and monitoring for memory corruption indicators.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Ubiquitous
FFmpeg/libavcodec is embedded in countless media apps, servers and transcoders
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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
High

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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.

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

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