Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ffmpeg | Ffmpeg | < 9.1 |
Related Weaknesses (CWE)
References
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24932Issue TrackingPatch
- https://github.com/FFmpeg/FFmpegProduct
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/wavenc.c#L391Product
- https://github.com/FFmpeg/FFmpeg/commit/0b1c279b62af82e422e3fc21ba6cc2fc3154dc76Patch
- https://www.vulncheck.com/advisories/ffmpeg-before-9.1-heap-buffer-overflow-via-Third Party Advisory
FAQ
What is CVE-2026-135722?
CVE-2026-135722 is a vulnerability with a CVSS score of 7.8 (HIGH). 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 aud...
How severe is CVE-2026-135722?
CVE-2026-135722 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-135722?
Check the references section above for vendor advisories and patch information. Affected products include: Ffmpeg Ffmpeg.