Skip to main content

FFmpeg EUVDEUVD-2026-133627

| CVE-2026-135722 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-11-24 VulnCheck GHSA-6g37-r68h-8wh2
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 zero-channel PCM to WAV muxer
  2. Exploit
    Peak envelope writer initializes with bad channel count
  3. Execution
    Out-of-bounds writes past peak_maxpos/maxneg arrays
  4. Impact
    Heap corruption, crash or potential code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

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

Exploitation Conditions

Requires FFmpeg to be used as the WAV MUXER/encoder with the peak-envelope feature enabled (the peak writer in libavformat/wavenc.c), AND an input audio stream that declares zero channels in a PCM stream destined for WAV output. This is an output-path/configuration-dependent flaw, not a decode-any-file bug: the peak-envelope WAV output is a non-default mode, which materially limits exposure. Limiting factors from the supplied CVSS 4.0 vector: local attack vector (AV:L) and required user interaction (UI:P) - a user or automated job must actually process the attacker-supplied stream through the vulnerable muxer configuration; no authentication is needed (PR:N). Affected: FFmpeg before 9.1; fixed in 9.1 (guard added so nb_channels <= 0 is rejected).

Impact

Signals are moderately consistent and point to a real but not emergency-level priority. The CVSS 4.0 vector supplied (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H) describes local attack vector with required (passive) user interaction and no privileges, yielding an 8.5 driven by high confidentiality/integrity/availability impact to the vulnerable system only (SC/SI/SA:N - no scope spread). The vuln.today decision label is 'this_week' (not act_now/emergency), which aligns with a serious memory-corruption bug that is not under active mass exploitation. No KEV listing and no EPSS score are provided, so there is no evidence of in-the-wild exploitation; the references are a vendor patch commit, a pull request, a source line, and a VulnCheck advisory - advisory/patch material rather than confirmed working exploit code. The most important nuance the raw CVSS score hides: this is a MUXER/encoder-side flaw that only triggers when FFmpeg is writing WAV output with the peak-envelope feature enabled (a non-default configuration) and is fed an input stream declaring zero channels, so despite FFmpeg's ubiquity the exploitable code path is narrow. Code execution is described by the vendor as 'potential'; the reliably reproducible outcome is heap corruption and crash. Net: credible local/processing-chain risk worth patching promptly, but not a drop-everything network-exploitable issue.

Exploit ScenarioDerived

An attacker crafts a PCM audio stream that declares zero channels and gets a victim to transcode or mux it to WAV with the peak-envelope writer enabled (e.g. an automated media pipeline or a user running ffmpeg with peak output). During peak_init_writer()/wav_write_packet() the zero-channel count bypasses the sizing check, producing out-of-bounds heap writes past the peak_maxpos/peak_maxneg arrays, causing a crash and potentially code execution. No confirmed working exploit code is published; only patch and advisory references exist.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 24, 2026

FFmpeg releases before 9.1 can corrupt heap memory when the WAV muxer (libavformat/wavenc.c) writes peak-envelope data for an audio stream that declares zero channels, causing out-of-bounds writes past the peak_maxpos and peak_maxneg arrays and resulting in a crash or potential code execution. The flaw is reachable only when FFmpeg is used as a WAV encoder with the non-default peak-envelope option enabled and a crafted PCM stream with no channels is supplied for output; the assessed vector is local (AV:L) with a required user or automated job to process the crafted stream, but no authentication is needed (PR:N). The issue is fixed upstream in 9.1 by rejecting nb_channels <= 0 in peak_init_writer(); no public exploit code was identified at time of analysis, and the priority is assessed as this_week rather than emergency-level because the vulnerable configuration is non-default.

RemediationAI

Vendor-released patch: upgrade to FFmpeg 9.1 or later, which adds the nb_channels <= 0 rejection in peak_init_writer(); downstream packagers should backport commit 0b1c279b62af82e422e3fc21ba6cc2fc3154dc76 (upstream merge request 24932) if they cannot move to 9.1 immediately, and the patch and advisory details are at https://github.com/FFmpeg/FFmpeg/commit/0b1c279b62af82e422e3fc21ba6cc2fc3154dc76 and https://www.vulncheck.com/advisories/ffmpeg-before-9.1-heap-buffer-overflow-via-wav-muxer-peak-envelope-writer. Where upgrading is not yet possible, the most direct compensating control is to stop invoking the peak-envelope writer: remove or force off the write_peak option in any service, script, or pipeline that muxes WAV output, which keeps wav_write_packet() from touching the undersized peak arrays, at the cost of losing the peak metadata those jobs produce. As a secondary measure, validate channel layout before muxing and reject or drop PCM streams that declare zero channels, and gate any job that muxes attacker-supplied audio behind sandboxing or least-privilege execution so a heap corruption cannot escalate; both reduce exposure but leave the vulnerable code path present, so upgrading to 9.1 remains the complete fix.

Affected VersionsENISA

FFmpeg 0 <9.1

Affected Packages

euvd ffmpeg fix: 9.1

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 WAV muxer implements a peak-envelope side feature (enabled via the write_peak option) that tracks per-channel maximum positive and negative sample values in the arrays peak_maxpos and peak_maxneg. In peak_init_writer(), buffer geometry is derived from the output stream's channel count multiplied by peak_bps and peak_ppv; prior to the fix the code only checked the upper bound, nb_channels > INT_MAX / (peak_bps * peak_ppv), and did not reject a channel count of zero or below. Because a zero-channel layout passes that check while still allowing the packet writer in wav_write_packet() to index and store into the peak arrays, the result is a classic CWE-122 heap-based buffer overflow: writes land past the end of the allocated peak buffers, giving memory corruption that can crash the process and, in the assessed view, potentially be steered toward code execution. The upstream patch at commit 0b1c279b62af82e422e3fc21ba6cc2fc3154dc76 (pull request 24932, visible against the n9.0.2 branch around line 391 of libavformat/wavenc.c) simply adds a short-circuit guard, negating the condition when par->ch_layout.nb_channels <= 0. The root cause is therefore inadequate input validation of the channel layout on the muxing path rather than a flaw in a decoder or demuxer, which is why exposure depends on the output configuration rather than merely on processing untrusted media.

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.0 HIGH

Local muxing path (AV:L) with required victim processing (UI:R); the non-default peak-envelope WAV configuration makes reliable triggering condition-dependent (AC:H); heap overwrite yields high C/I/A on the same process (S:U).

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:P/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

DescriptionCVE.org

FFmpeg before 9.1 contains a heap-based buffer overflow vulnerability in peak_init_writer() and wav_write_packet() in libavformat/wavenc.c that allows attackers to corrupt heap memory by supplying audio with zero channels. Attackers can provide a crafted PCM stream declaring no channels for WAV output with peak envelope enabled, causing out-of-bounds writes past peak_maxpos and peak_maxneg arrays, crashes, and potential code execution.

Executive ViewAI

Why It Matters

A heap corruption vulnerability in FFmpeg's WAV encoder, present in all versions before 9.1, could enable code execution when media-processing workflows encode crafted audio with the non-default peak-envelope option. Because this requires a non-standard configuration and the vulnerability is not currently exploited, the immediate organizational risk is limited-but any application or service that transcodes untrusted audio using peak-envelope measurement should be prioritized for remediation.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded in countless media apps, servers, and pipelines worldwide
Social Media
2
Sightings
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.2%
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
Medium

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.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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