CVE-2026-135722FFmpeg heap-based buffer overflow
CVSS score
8.5
High
CVSS 4.0 from vulncheck.com
Exploit probability (EPSS)
No EPSS score yet.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: disclosure@vulncheck.com
How to fix it, step by step
Check whether you're affected
Find every system running FFmpeg and compare its version with the affected versions.
Update to a fixed version
- Update FFmpeg to 9.1 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Local
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- Passive
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| FFmpeg FFmpeg | < 9.1 |
Weakness
- CWE-122 heap-based buffer overflow
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-135722 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far.
What is the CVSS score of CVE-2026-135722?
CVE-2026-135722 has a CVSS 4.0 base score of 8.5 (high).
Which versions are affected?
Ffmpeg FFmpeg (< 9.1)
Is there a patch for CVE-2026-135722?
The official record links to vendor advisories or patches; see “What to do” above.
References
- code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24932
- github.com/FFmpeg/FFmpeg
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/wavenc.c#L391
- github.com/FFmpeg/FFmpeg/commit/0b1c279b62af82e422e3fc21ba6cc2fc3154dc76
- www.vulncheck.com/advisories/ffmpeg-before-9.1-heap-buffer-overflow-via-wav-muxer-peak-envelope-writer
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.