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.
- CVSS
- 7.8High
- Chance of exploitation (EPSS)
- 0.49%
- Published
- Nov 24, 2026
- In the news
- Not yet
What to do
A serious buffer overflow in Ffmpeg that needs access to the machine itself. Exploit code is public, so patch it soon.
Action: Apply the vendor's update or follow its advisory.
Fixed in: 9.1
Affected versions
- Ffmpeg
- Before 9.1
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.
Affected products
Get alerts for these →Timeline 6
Latest change: Severity score changed from 7.0 to 7.8 (Dec 5, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Yesterday
- ChangeSeverity score changed from 7.0 to 7.8ZeroDay Brief · 23:45 UTC
Wed, Nov 25, 2026
- DetectionNessus plugin 386063: FFmpeg < 9.1 Multiple VulnerabilitiesTenable
Tue, Nov 24, 2026
- Exploit codecveForge/CVE-2026-135706: PoC for CVE-2026-135706 — FFmpeg libmodplug XM Pattern Heap Overflow (CVSS 7.0)GitHub (unverified) · 16:30 UTC
- Exploit codegooglesky/CVE-2026-135706: FFmpegGitHub (unverified) · 11:30 UTC
- CVECVE-2026-135706 published (CVSS 7.8)CVE Program · 04:17 UTC
- DetectionNessus plugin 385781: Linux Distros Unpatched Vulnerability : CVE-2026-135706Tenable
Exploit code
Visit at your own risk. These are third-party sites we find automatically. We do not test, review or vouch for them, and fake proof-of-concept repositories sometimes contain malware.
- googlesky/CVE-2026-135706: FFmpeg
GitHub, unverified · found Nov 24, 2026
- cveForge/CVE-2026-135706: PoC for CVE-2026-135706 — FFmpeg libmodplug XM Pattern Heap Overflow (CVSS 7.0)
GitHub, unverified · found Nov 24, 2026
References 5
- code.ffmpeg.org Patch /FFmpeg/FFmpeg/pulls/24914
- github.com Patch /FFmpeg/FFmpeg/commit/edc96a209b25b78d3e4b96e951774eb13c8da0b0
- github.com /FFmpeg/FFmpeg
- github.com /FFmpeg/FFmpeg/blob/n9.0.2/libavformat/libmodplug.c#L200
- www.vulncheck.com /advisories/ffmpeg-before-9.1-heap-buffer-overflow-via-libmodplug-demuxer