Skip to content
OpenAdvisories
High · 7.0 Public exploit CVE-2026-135706 EUVD-2026-133643GHSA-5gx5-7mpg-28m5

FFmpeg before 9.1 Heap Buffer Overflow via libmodplug Demuxer

Published Nov 24, 2026 · Updated Nov 24, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
FFmpeg FFmpeg < 9.1 9.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ffmpeg No fix yet —
Debian 13 ffmpeg No fix yet —
Debian 12 ffmpeg No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 ffmpeg No fix yet —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS ffmpeg No fix yet —
Ubuntu Pro 24.04 LTS ffmpeg No fix yet —
Ubuntu Pro 22.04 LTS ffmpeg No fix yet —
Ubuntu Pro 20.04 LTS ffmpeg No fix yet —
Ubuntu Pro 18.04 LTS ffmpeg No fix yet —
Ubuntu Pro 16.04 LTS ffmpeg No fix yet —
Ubuntu Pro 14.04 LTS libav No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

  • cveForge/CVE-2026-135706 ★ 0 · Nov 24, 2026

    PoC for CVE-2026-135706 — FFmpeg libmodplug XM Pattern Heap Overflow (CVSS 7.0)

  • googlesky/CVE-2026-135706 ★ 0 · Nov 24, 2026

    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…

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 1

References