Skip to main content

FFmpeg CVE-2026-125104

| EUVDEUVD-2026-120258 MEDIUM
Memory Allocation with Excessive Size Value (CWE-789)
2026-11-09 disclosure@vulncheck.com GHSA-r322-5w3w-7x79
6.8
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Craft legacy APE file with huge nblocks
  2. Exploit
    Deliver to FFmpeg-based app or transcoder
  3. Execution
    ape_decode_frame reads unbounded nblocks
  4. Impact
    Gigabyte allocation exhausts memory (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
Exploitation Conditions

The target application must decode a crafted legacy Monkey's Audio (APE) file whose header reports fileversion < 3930 and declares an nblocks value above the 73728-sample limit, driving ape_decode_frame() in libavcodec/apedec.c to request gigabyte-scale allocations. Exploitation is LIMITED by: user/application interaction is required (CVSS UI:P) - the malicious file must be opened or submitted for decoding; only the legacy APE code path (fileversion < 3930) is affected, not modern APE files; impact is confined to availability (process memory exhaustion / crash) with no code execution, data disclosure, or integrity impact. The CVSS vector is AV:L, so the baseline assumption is local file handling; note that FFmpeg used as a server-side transcoder of untrusted uploads effectively exposes this to remote content.

Impact

This is a genuine but bounded issue - a medium-severity denial-of-service, not a high-priority emergency. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H) scores 6.8 and tells a consistent story: availability-only impact (VA:H), no confidentiality or integrity loss, low complexity, no privileges, but local vector with passive user interaction, meaning a victim application or user must process the attacker's file. The vuln.today decision label is 'this_month' (not act_now/emergency), there is no CISA KEV listing and no EPSS score in the input, and no public exploit code is identified - the only exploitation-relevant artifact is the fixing commit diff, which demonstrates the trigger but is a patch, not weaponized code. One tension worth flagging: the official rating uses AV:L, yet FFmpeg is very commonly deployed as a server-side transcoder that ingests untrusted uploaded media; in that deployment the same flaw is effectively reachable remotely and the practical attack surface is larger than AV:L implies - verify against your own deployment model. Net: real and worth patching on a normal cycle, but the availability-only impact and absence of KEV/EPSS/exploit signals keep it below drop-everything priority.

Exploit ScenarioDerived

An attacker crafts a legacy Monkey's Audio (APE) file with fileversion < 3930 that declares an enormous nblocks value, then gets a victim to decode it - either by a user opening it in an FFmpeg-based media application or by uploading it to a service that transcodes media with FFmpeg ≤ 9.0.2. When ape_decode_frame() processes the frame it attempts gigabyte-scale buffer allocations, exhausting memory and crashing or hanging the process (DoS). No public exploit code is identified at time of analysis, though the fixing commit (968e9e9) clearly illustrates the missing bounds check and thus the trigger.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 09, 2026

FFmpeg through 9.0.2 can be driven into gigabyte-scale memory allocation by a crafted legacy Monkey's Audio (APE) file, because ape_decode_frame() in libavcodec/apedec.c does not apply the 73728-sample ceiling to frames whose header declares a fileversion below 3930. The practical result is process memory exhaustion and a crash - availability impact only, with no code execution, data disclosure or integrity impact described. Triggering requires the crafted file to be opened or submitted for decoding (user interaction), so local file handling is the baseline; FFmpeg used as a server-side transcoder of untrusted uploads effectively exposes the same bug to remote content. No CISA KEV entry and no confirmed public exploit code were provided; the upstream fix is commit 968e9e948ed8c9ba90dbc875e60b843c755cf4ba (PR 25703).

RemediationAI

The fix is upstream in commit 968e9e948ed8c9ba90dbc875e60b843c755cf4ba, corresponding to pull request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25703, which adds the legacy-frame limit '(s->fileversion < 3930 && nblocks > 73728)' to the header validation in ape_decode_frame(); because the references point to a commit and PR rather than a tagged release, the specific released FFmpeg version carrying the change is not independently confirmed here, so verify the build or distribution package includes this commit before treating the issue as closed. Until a build with the commit is deployed, the exposure is bounded by the decode path itself: only legacy APE input (fileversion < 3930) reaches the oversized allocation, so deployments that transcode untrusted uploads should avoid feeding legacy Monkey's Audio content to unpatched FFmpeg builds, and memory limits or container caps on decoder processes will convert the gigabyte-scale allocation into a contained failure rather than host-level exhaustion, at the cost of dropping the job being decoded.

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

Monkey's Audio (APE) is a lossless audio format; FFmpeg decodes it via the APE decoder in libavcodec/apedec.c, where ape_decode_frame() reads the frame header, derives an nblocks (sample block count) value, and sizes the internal decoded_buffer accordingly. The root cause is CWE-789 (memory allocation with excessive size value): the pre-existing guard only rejected a zero nblocks or one exceeding INT_MAX / 2 / sizeof(*s->decoded_buffer) - 8, which leaves room for very large but arithmetically valid values on the legacy decode path. Legacy streams - those with fileversion < 3930 - are supposed to be capped at 73728 samples, but that cap was not enforced, so a header declaring an enormous nblocks drives an allocation on the order of gigabytes. The upstream patch simply extends the condition with '(s->fileversion < 3930 && nblocks > 73728)', rejecting such headers before the allocation. Modern APE files (fileversion >= 3930) are not on the affected code path, and the supplied commit diff touches no other logic.

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

Attacker-supplied file must be processed by the victim (AV:L, UI:R); no privileges and a simple declared-size trigger (PR:N, AC:L); impact is memory-exhaustion DoS only (A:H, C/I:N).

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

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
None
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 memory exhaustion vulnerability in ape_decode_frame() in libavcodec/apedec.c that fails to enforce the 73728-sample limit for legacy APE frames. Attackers can supply a crafted legacy Monkey's Audio file declaring an enormous nblocks value to force gigabyte-scale allocations and cause denial of service.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded across browsers, media players, and server transcoders
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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.2%
Patch available No
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
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

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