CVE-2026-135706
FFmpeg before 9.1 Heap Buffer Overflow via libmodplug Demuxer
High · 7.3Fix available
- CVSS
- 7.3
- EPSS
- 0.49% (p35)
- Published
- 2026-11-24
- Age
- 5d old
- Modified
- 2026-11-25
- Product
- FFmpeg FFmpeg
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Description
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.
Fixed in
9.1
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | FFmpeg | >=0, <9.1 | 9.1 |
Sources
- NVD · first seen 5d ago · NVD terms of use
- OSV · first seen 5d ago · CC-BY 4.0
- CVE List · first seen 5d ago · CVE Terms of Use
References
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24914 issue-tracking
- https://github.com/FFmpeg/FFmpeg/commit/edc96a209b25b78d3e4b96e951774eb13c8da0b0 patch
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/libmodplug.c#L200 technical-description
- https://github.com/FFmpeg/FFmpeg product
- https://www.vulncheck.com/advisories/ffmpeg-before-9.1-heap-buffer-overflow-via-libmodplug-demuxer third-party-advisory
- https://code.ffmpeg.org/FFmpeg/FFmpeg web
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135706.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-135706 advisory