# CVE-2026-135722: FFmpeg before 9.1 Heap Buffer Overflow via WAV Muxer Peak Envelope Writer

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-11-24T03:13:53.361Z
- Modified: 2026-11-28T03:37:33.177Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- FFmpeg FFmpeg: before 9.1

## Every score

- VulnCheck: CVSS:4.0 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`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24932> (issue-tracking, patch)
- <https://github.com/FFmpeg/FFmpeg/commit/0b1c279b62af82e422e3fc21ba6cc2fc3154dc76> (patch)
- <https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/wavenc.c#L391> (product, technical-description)
- <https://github.com/FFmpeg/FFmpeg> (product)
- <https://www.vulncheck.com/advisories/ffmpeg-before-9.1-heap-buffer-overflow-via-wav-muxer-peak-envelope-writer> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-135722](https://www.cve.org/CVERecord?id=CVE-2026-135722), CVE Terms of Use, modified 2026-11-28
- NVD: [CVE-2026-135722](https://nvd.nist.gov/vuln/detail/CVE-2026-135722), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-135722 · Whole record: https://cve.day/CVE-2026-135722.json · Rebuilt by cve.day 2026-11-28T03:47:21.345Z
