CVE-2026-135706 FFmpeg before 9.1 Heap Buffer Overflow via libmodplug Demuxer

Published Updated

Crafted module files can overflow a heap buffer in FFmpeg's libmodplug demuxer, causing crashes or possible code execution.

CVSS score

High

7.3/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
Proof of concept
2 on GitHub, unverified
Fix
Available
9.1
Attack path
Local or same network
No login, a user must click or open something

What is CVE-2026-135706?

CVE-2026-135706 is a high-severity memory corruption vulnerability in FFmpeg, published on 24 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-122

How severe is CVE-2026-135706?

CVE-2026-135706 scores 7.3 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.

Attack vector
Local
Attack complexity
High
Attack requirements
Present
Privileges required
None
User interaction
Passive
Confidentiality
High
Integrity
High
Availability
High

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

Which versions are affected by CVE-2026-135706?

1 open source package ship an affected version, including ffmpeg/ffmpeg. It affects 1 product.

An affected version is exposed as installed. No special setting or call is needed.

PackageAffectedFixed in
ffmpeg/ffmpeg GitHub
pkg:github/ffmpeg/ffmpeg
All versions9.1
Status by vendor 1
WhoReleaseStatusPackages
Upstreamfixedffmpeg:ffmpeg (9.1)

Products include FFmpeg.

CPE match criteria 1
CPE 2.3Versions
cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*before 9.1

How do I fix CVE-2026-135706?

Upgrade ffmpeg/ffmpeg to 9.1 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-135706 being exploited?

There is no known exploitation of CVE-2026-135706 in the wild and no public exploit code.

Public exploit code: 2 proofs of concept on GitHub.

All FFmpeg vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-135706, ECHO-fabd-a131-209d, GHSA-5gx5-7mpg-28m5, UBUNTU-CVE-2026-135706.

Is CVE-2026-135706 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free