Ffmpeg: heap buffer overflow
HighAI-generated2026-11-27
- CVE
- CVE-2026-135706
- Severity
- High (CVSS 7.0)
- Attack conditions
- With local access to the device · No account needed · A user must take some action
- Exploitation probability (EPSS)
- 0.4% (within 30 days; FIRST EPSS, 30 November 2026)
Summary
FFmpeg versions prior to 9.1 contain a heap buffer overflow that can be triggered by specially crafted module files, leading to memory corruption, crashes, or possible code execution.
Details
According to the NVD record, FFmpeg before version 9.1 has a heap buffer overflow in the function modplug_read_header() within libavformat/libmodplug.c. The code allocates a buffer using max_size instead of the actual size, and when max_size is zero, a zero-sized buffer is created.
An attacker can provide a malicious module file that causes the library to copy data into this zero-sized buffer. This can corrupt memory, crash the application, or potentially allow the attacker to execute 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
- 27 November 2026 This article was written