Buffer overflow in Ffmpeg
CVE-2026-135706
- CVSS v3
- 7.0 High
- Public exploits
- 2 repositories
- EPSS
- 0.002 · 8.4th percentile
- Published
- 2026-11-24
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.
- Attack Vector
- Local
AV:L - Attack Complexity
- High
AC:H - Privileges Required
- None
PR:N - User Interaction
- Required
UI:R - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.002, 8.4th percentile (last changed ). About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- cveForge/CVE-2026-135706 (last pushed 2026-11-24): PoC for CVE-2026-135706 — FFmpeg libmodplug XM Pattern Heap Overflow (CVSS 7.0)
- googlesky/CVE-2026-135706 (last pushed 2026-11-24): FFmpeg <9.1: modplug_read_header() allocates max_size instead of sz — a crafted module with max_size=0 overflows the 0-byte buffer via avio_read. Verbatim allocation from edc96a2^ vs av_malloc(sz) wi…
References
- code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24914 (issue-tracking)
- github.com/FFmpeg/FFmpeg/commit/edc96a209b25b78d3e4b96e951774eb13c8da0b0 (patch)
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/libmodplug.c (technical-description)
- github.com/FFmpeg/FFmpeg (product)
- www.vulncheck.com/advisories/ffmpeg-before-9.1-heap-buffer-overflow-via-libmodp… (third-party-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.