
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.