Heap Buffer Overflow in FFmpeg Affecting Libavformat's Modplug
CVE-2026-135706
7.3HIGH
What is CVE-2026-135706?
FFmpeg versions prior to 9.1 are susceptible to a heap buffer overflow in the modplug_read_header() function within libavformat/libmodplug.c. This vulnerability is triggered when the buffer is allocated using max_size instead of sz, leading to scenarios where attackers can utilize crafted module files. When the max_size is set to 0, it permits the avio_read() function to copy data into a zero-sized buffer, resulting in potential memory corruption, application crashes, or even the execution of arbitrary code. Users are advised to update to the latest version to mitigate this risk.
Affected Version(s)
FFmpeg 0 < 9.1
References
CVSS V4
Score:
7.3
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
High
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
Unknown
Timeline
Vulnerability published
Vulnerability Reserved
Credit
Joshua Rogers (AISLE Research)
Michael Niedermayer
