FFmpeg before 9.1 contains a heap buffer overflow vulnerability in modplug_read_header() in libavformat/libmodplug.c that allocates the buffer using max_size instead of sz. When max_size is set to 0, attackers can supply crafted module files that avio_read() copies into a zero-sized buffer, causing memory corruption, crashes, or possible code execution.
CVE-2026-135706
CVSS base score
7.0 (v3.1)
Severity
HIGH
Attack vector
Local
Weakness
CWE-122
Last modified
November 25, 2026
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected products
ffmpeg ffmpeg
References
- code.ffmpeg.org Issue Tracking, Patch
- github.com Product
- github.com Product
- github.com Patch
- www.vulncheck.com Third Party Advisory