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

Published Nov 24, 2026
·
Updated

FFmpeg before 9.1 contains a heap buffer overflow vulnerability in modplugreadheader() in libavformat/libmodplug.c that allocates the buffer using maxsize instead of sz. When maxsize is set to 0, attackers can supply crafted module files that avioread() copies into a zero-sized buffer, causing memory corruption, crashes, or possible code execution.

Affected Software

1 affected component
FFmpeg FFmpeg<9.1

Event History

Nov 24, 2026
CVE Published
via MITRE·03:14 AM
Data Sourced
via MITRE·03:14 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Systems using FFmpeg versions before 9.1 are affected when they process attacker-controlled module files through the libmodplug demuxer. Exploitation requires local attack vector conditions and user interaction, according to the supplied CVSS vector.

2

What does an attacker need to do to trigger the overflow?

An attacker must provide a crafted module file that reaches modplug_read_header() with max_size set to 0. The vulnerable code then allows avio_read() to copy data into a zero-sized allocated buffer.

3

What is the impact if exploitation succeeds?

The heap buffer overflow can cause memory corruption and crashes, and may allow code execution. The supplied severity vector rates confidentiality, integrity, and availability impact as high.

4

What should be done if the affected component cannot be updated immediately?

Avoid processing untrusted module files with the libmodplug demuxer until FFmpeg can be updated to version 9.1 or later. This reduces the opportunity for a crafted input file to reach the vulnerable code path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203