FFmpeg before 9.1 Heap Buffer Overflow via WAV Muxer Peak Envelope Writer
- State
- Published
- Severity
- 8.5 High
- Published
- Nov 24, 2026
- Updated
- Nov 28, 2026
- Reserved
- Nov 24, 2026
Description
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.
| Product | Versions |
|---|---|
| FFmpeg FFmpeg | before 9.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.5 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-122 Heap-based Buffer Overflow
References
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24932Issue Tracker
- Patch CommitPatch
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/wavenc.c#L391Technical Details
- https://github.com/FFmpeg/FFmpegProduct Page
- VulnCheck Advisory: FFmpeg before 9.1 Heap Buffer Overflow via WAV Muxer Peak Envelope WriterThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.