FFmpeg 9.1 Patch Fixes High-Severity Heap Overflow in Modplug Demuxer

A high-severity heap buffer overflow vulnerability, designated CVE-2026-135706, has been identified in FFmpeg versions prior to 9.1. The flaw resides in the libmodplug demuxer, specifically within the modplug_read_header() function, where the code allocates a buffer using max_size instead of the actual size sz. When max_size is set to zero, attackers can supply crafted module files that cause avio_read() to copy data into a zero-sized buffer. This misallocation leads to memory corruption, application crashes, or potential remote code execution. The vulnerability carries a CVSS 4.0 score of 7.3 (High) and a CVSS 3.1 score of 7.0 (High). It is classified as CWE-122, a heap-based buffer overflow, with a high likelihood of exploitation. The issue requires local attack vector, high complexity, and user interaction, but demands no privileges. A fix has been released in FFmpeg 9.1, with patches available via GitHub pull request 24914.
Key points
- The vulnerability affects FFmpeg versions earlier than 9.1 and is located in the libavformat/libmodplug.c file.
- The root cause is an incorrect buffer allocation in modplug_read_header(), using max_size instead of sz, which allows writing to a zero-sized buffer when max_size is 0.
- Exploitation involves supplying crafted module files, leading to memory corruption, crashes, or possible code execution.
- The CVSS 4.0 score is 7.3 (High), with impacts on confidentiality, integrity, and availability all rated High.
- The CVSS 3.1 score is 7.0 (High), requiring user interaction and having high attack complexity.
- The weakness is classified as CWE-122 (Heap-based Buffer Overflow) with a high likelihood of exploitation according to MITRE.
Background
This vulnerability follows a recent trend of memory corruption flaws in media and system libraries. On November 23, 2026, a similar high-severity heap overflow was reported in the FLTK toolkit (CVE-2026-135433), affecting versions up to 1.4.5 via crafted BMP files. Also on November 23, an out-of-bounds write was fixed in Eclipse iceoryx2 (CVE-2026-135433 context, though distinct CVE) and a denial-of-service flaw in Synchronet BBS was noted. On November 21, a critical remote stack overflow in D-Link routers (CVE-2026-133993) was highlighted. These incidents underscore the ongoing risk of buffer overflows in widely used software components, particularly those handling untrusted input like media files or network data.
Why it matters
FFmpeg is a foundational library used in countless media processing applications, web browsers, and operating systems. A heap buffer overflow in its demuxer, even one requiring user interaction and high complexity, poses a significant risk if exploited through malicious media files. The high CVSS scores and potential for code execution mean that unpatched systems could be compromised, leading to data theft, system integrity loss, or service disruption. Given the widespread use of FFmpeg, prompt patching to version 9.1 is critical to mitigate this risk.
What to watch
Organizations should immediately update FFmpeg to version 9.1 or later to apply the fix for CVE-2026-135706. Security teams should monitor for any public exploit code or active exploitation attempts, although none are currently reported. Developers using FFmpeg in their applications should ensure their build environments are updated and that input validation for media files is robust. Continued monitoring of vulnerability databases like NVD and CISA is recommended for any new developments or related advisories.
Want the full story? Read the original reporting
Read on CVEs | Zero Wire | Cloudflare Radar