Buffer overflow in Ffmpeg
CVE-2026-135722
- CVSS v3
- 7.8 High
- Public exploits
- 2 repositories
- EPSS
- 0.002 · 11.4th percentile
- Published
- 2026-11-24
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
- Attack Vector
- Local
AV:L - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- Required
UI:R - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.002, 11.4th percentile (last changed ). About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- cveForge/CVE-2026-135722 (last pushed 2026-11-24): PoC for CVE-2026-135722 — FFmpeg wav_write_packet Heap Overflow (CVSS 7.8)
- googlesky/CVE-2026-135722 (last pushed 2026-11-24): FFmpeg <9.1: wavenc peak_init_writer() accepts zero channels, sizing the peak buffer to zero — wav_write_packet overflows the heap. Verbatim guard from 0b1c279^ vs fix with ASan: heap WRITE overflow…
References
- code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24932 (issue-tracking, Patch, Issue Tracking)
- github.com/FFmpeg/FFmpeg/commit/0b1c279b62af82e422e3fc21ba6cc2fc3154dc76 (Patch, patch)
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/wavenc.c (Product, technical-description)
- github.com/FFmpeg/FFmpeg (Product, product)
- www.vulncheck.com/advisories/ffmpeg-before-9.1-heap-buffer-overflow-via-wav-mux… (Third Party Advisory, third-party-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.