Ffmpeg: heap overflow can lead to code execution
HighAI-generated2026-11-26
- CVE
- CVE-2026-135722
- Severity
- High (CVSS 7.8)
- Attack conditions
- With local access to the device · No account needed · A user must take some action
- Exploitation probability (EPSS)
- 0.5% (within 30 days; FIRST EPSS, 29 November 2026)
Summary
FFmpeg versions prior to 9.1 contain a heap-based buffer overflow that can be triggered by audio files with zero channels, potentially allowing crashes or remote code execution.
Details
According to the NVD record, FFmpeg before version 9.1 has a heap-based buffer overflow in the functions peak_init_writer() and wav_write_packet() within its WAV encoder. The flaw occurs when a crafted PCM stream declares no audio channels while peak envelope processing is enabled.
An attacker can exploit this by supplying a specially crafted audio file that causes the program to write beyond allocated memory buffers, leading to crashes and possibly executing arbitrary code.
What to do
The source record does not name a specific patch, fixed version or workaround. General measures:
- Follow the vendor's security advisories.
- Apply the update when it is released.
- Limit access to the product as much as possible, especially from the internet.
Sources
Timeline
- 24 November 2026 NVD record published
- 26 November 2026 This article was written