Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted zero-channel PCM to WAV muxer
-
ExploitPeak envelope writer initializes with bad channel count
-
ExecutionOut-of-bounds writes past peak_maxpos/maxneg arrays
-
ImpactHeap 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Related Vulnerabilities in FFmpeg Memory Corruption and NULL Dereference Flaws
View all 34FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
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
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
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
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
EUVD-2026-133627
GHSA-6g37-r68h-8wh2
NVD
CVE.org
EPSS
Exploit-DB