Skip to main content

FFmpeg CVE-2026-125171

| EUVDEUVD-2026-120260 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-09 disclosure@vulncheck.com GHSA-232q-ggmr-68x2
6.9
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious Musepack SV7 file
  2. Exploit
    Victim opens file in FFmpeg consumer
  3. Execution
    Oversized lastframelen bypasses missing bounds check
  4. Impact
    Out-of-bounds read crashes process or discloses heap memory

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a victim to open or decode an attacker-crafted Musepack SV7 (.mpc) file using an FFmpeg-based consumer; the file must declare a final-frame length (lastframelen) exceeding MPC_FRAME_SIZE, which the vulnerable mpc7_decode_init() fails to validate. Limiting factors: the vector is local (AV:L) with required passive user interaction (UI:P) - there is no remote network trigger - and the Musepack SV7 codec is a niche format that many deployments never invoke. Impact is bounded to a crash or limited heap disclosure (no code execution/integrity impact), so realistic risk depends on whether the target actually processes untrusted .mpc files.

Impact

This is a medium-severity, file-borne memory-safety defect, not an emergency. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P) and score of 6.9 describe a local, low-complexity flaw that still requires passive user interaction - a victim must open or decode a crafted Musepack SV7 file. Impact is split: VA:H reflects a reliable crash (denial of service) while VC:L reflects limited heap memory disclosure, and VI:N means no integrity/code-execution impact is claimed. There is no CISA KEV listing and no EPSS score supplied, and no public exploit is referenced - only the upstream fix PR and commit - so there is no evidence of active or widespread exploitation. The vuln.today decision label is 'this_month' (remediate on a normal patch cadence), consistent with the absence of KEV/EPSS urgency signals. Net: a real but routine-priority bug whose risk is bounded by the need to deliver and have a victim process a malicious audio file; its high nominal reach comes from FFmpeg's ubiquity rather than from this specific, niche codec path.

Exploit ScenarioDerived

An attacker crafts a malicious Musepack SV7 (.mpc) file whose header declares an oversized final frame length and distributes it (download, email, media upload). When a victim opens or transcodes the file with any FFmpeg-based consumer, the unvalidated lastframelen drives reads past the audio buffer, crashing the process or leaking adjacent heap contents. No public exploit code is referenced in the provided data; only the upstream fix commit and PR are available.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 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

An out-of-bounds heap read in FFmpeg's Musepack SV7 decoder (libavcodec/mpc7.c) lets a crafted .mpc file drive the decoder past its audio buffer, crashing the process or leaking adjacent heap memory into the decoded output. Versions through 9.0.2 are affected because mpc7_decode_init() accepts a stream-declared lastframelen larger than MPC_FRAME_SIZE without validation; exploitation requires a victim to open or decode the hostile file locally (AV:L, UI:P/R), so only deployments that actually process untrusted Musepack SV7 content are exposed. No public exploit code and no confirmed active exploitation were identified at time of analysis, and the impact is bounded to denial of service and limited information disclosure with no code execution or integrity impact. Upstream fix code is public in commit 5d59b7c4 (PR 25074), which adds the missing length check and rejects the file with AVERROR_INVALIDDATA.

RemediationAI

Apply the upstream fix in commit 5d59b7c45d7142bddd13ddc8891e72c5c7dc991b (tracked via merge request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25074), which adds a check in mpc7_decode_init() that logs 'Invalid last frame length' and returns AVERROR_INVALIDDATA whenever lastframelen exceeds MPC_FRAME_SIZE; note that this is an upstream commit/PR, so a tagged release containing it is not independently confirmed - verify the shipped version of your FFmpeg or libavcodec build postdates 9.0.2 and includes the check before considering the issue closed. Where an immediate rebuild is not possible, the most direct mitigation is to remove the attack surface: build with --disable-decoder=mpc7, or restrict your application's allowed-decoder/demuxer whitelist so the mpc7 decoder is never selected, at the cost of losing Musepack SV7 playback and transcoding support. Additionally, quarantine or reject untrusted .mpc uploads and avoid batch-transcoding untrusted Musepack files on production hosts until the fix is in place; this reduces but does not eliminate risk because the same decoder can be reached through any container or stream that embeds SV7 audio. Keep the patch advisory pages referenced above on watch for the release that formally carries the fix.

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

Musepack SV7 is a legacy lossy audio format decoded by FFmpeg's libavcodec mpc7 decoder. During mpc7_decode_init(), the decoder reads the SV7 stream header, which carries a lastframelen field describing the size of the final frame. The vulnerable code (mpc7.c, around line 281 in the n9.0.2 tag) assigns that attacker-controlled value without comparing it against MPC_FRAME_SIZE, the fixed maximum frame size the decoder's buffers and downstream frame consumers are sized for. Because the oversized value is accepted, the frame produced is short while consumers of the decoded audio - the filter graph, resamplers, sample-format converters, or the embedding application copying planar samples - read past the end of the audio buffer. This is CWE-125 (out-of-bounds read): the root cause is a missing input-validation check on a length field parsed from the bitstream, not a flaw in the decoding math itself. Impact is memory disclosure of adjacent heap contents and/or a crash from the invalid read; the assessed vector (AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H) reflects a local, file-borne trigger with required user interaction, low confidentiality impact and high availability impact, and no scope change.

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

File must be opened by the victim, so AV:L with UI:R; low-complexity trigger (AC:L); heap disclosure is limited (C:L), crash gives A:H, and no integrity impact (I:N).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 6.1 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
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 an out-of-bounds read vulnerability in the Musepack SV7 decoder because mpc7_decode_init() does not validate lastframelen against MPC_FRAME_SIZE. Attackers can supply a crafted Musepack SV7 file declaring an oversized final frame, causing consumers of decoded frames to read past the audio buffer, leading to crashes or heap memory disclosure.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Ubiquitous
FFmpeg/libavcodec is embedded across countless media and server applications
Data Quality
6 sources
Confidence: High

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 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· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

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

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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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