Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious module file
-
DeliveryDeliver file to victim
-
ExploitVictim processes it via libmodplug demuxer
-
ExecutionZero-sized heap buffer overflowed by avio_read
-
ImpactHeap corruption, crash, or possible code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an FFmpeg build compiled with libmodplug support (the modplug demuxer, a non-default optional component enabled via --enable-libmodplug) and that this demuxer be used to process an attacker-supplied module file. The specific trigger is that the internal max_size value is 0 at the time of allocation (reflected as AT:P), after which avio_read() copies crafted data into the zero-sized heap buffer. Per the CVSS vector exploitation also needs passive user interaction (UI:P) to open/process the file and uses a local attack vector (AV:L) with high complexity (AC:H). These factors - non-default demuxer, required file processing, the max_size=0 precondition, and high complexity - materially limit real-world exposure despite PR:N (no authentication; CVSS shows PR:N). The available sources do not describe how max_size comes to be 0, so that precondition is not fully characterized. |
| Impact | The input CVSS 4.0 vector (CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P, base 7.3) describes a serious-but-constrained flaw: no privileges are required (PR:N) and impact to the vulnerable system is high across confidentiality, integrity and availability (VC:H/VI:H/VA:H), but the attack is local (AV:L), has high complexity (AC:H), carries an explicit attack requirement (AT:P), and needs passive user interaction (UI:P). No EPSS score, KEV entry, or confirmed PoC was supplied, so there is no signal of active or probable exploitation to weigh against the severity. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a real-but-not-urgent priority. The several mitigating metrics (local vector, user interaction, high complexity, specific triggering condition) mean this behaves more like a high-CVSS issue with modest real-world risk than a widely-exploitable emergency. Note a potential tension to verify: media demuxers often process files arriving over a network, yet the vector is AV:L and the description frames the bug as triggered by a supplied module file processed locally - treat the 'RCE' tag cautiously since the description states only 'possible code execution,' not demonstrated remote code execution. |
| Exploit ScenarioDerived | An attacker crafts a malicious tracker/module file and induces a victim to open or process it with an FFmpeg build that has the libmodplug demuxer enabled. When the internal max_size is 0, avio_read() copies attacker-controlled data into a zero-sized heap allocation, corrupting the heap and causing a crash or potentially code execution. No public exploit was identified at time of analysis; the fix is a one-line allocation correction in the patch commit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Heap buffer overflow in FFmpeg's optional libmodplug demuxer affects builds compiled with --enable-libmodplug that use the modplug demuxer to process attacker-supplied module files. The demuxer allocates modplug->max_size instead of sz in modplug_read_header(); when max_size is 0, avio_read() copies crafted module data into a zero-sized heap buffer, enabling memory corruption, crashes, or possible code execution with high confidentiality, integrity, and availability impact to the vulnerable system. Exploitation is constrained by a local attack vector, high complexity, an explicit attack requirement (the max_size=0 precondition), and passive user interaction, and only non-default builds are exposed; no public exploit was identified at time of analysis, and a vendor patch is available (fixed in 9.1).
RemediationAI
Upgrade to FFmpeg 9.1 or later; the vendor fix is in commit edc96a209b25b78d3e4b96e951774eb13c8da0b0 (pull request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24914), and patch status is available from the vendor. Deployments that cannot immediately upgrade should avoid builds configured with --enable-libmodplug or disable/avoid the modplug demuxer when handling untrusted module files, accepting the loss of module-format demuxing for those inputs. Refer to https://www.vulncheck.com/advisories/ffmpeg-before-9.1-heap-buffer-overflow-via-libmodplug-demuxer for advisory details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FFmpeg's libavformat/libmodplug.c provides a demuxer that wraps libmodplug to parse tracked module formats. CWE-122 heap-based buffer overflow arises from an allocation-size error: modplug_read_header() calls av_malloc(modplug->max_size) rather than av_malloc(sz). When max_size is 0, a zero-sized heap allocation is created, and subsequent avio_read() of attacker-controlled module data writes past it. The supplied sources do not explain how max_size becomes 0; that precondition is not fully characterized. The flaw is reachable only in FFmpeg builds configured with the non-default optional libmodplug component (--enable-libmodplug) and only when the modplug demuxer processes an attacker-supplied module file. CVSS 4.0 scoring records AV:L, AC:H, AT:P, PR:N, UI:P, with high VC/VI/VA and no scope change; the assessed CVSS 3.1 vector similarly reflects local access, high complexity, no privileges, and user interaction. No public exploit identified at time of analysis.
Know when Ffmpeg gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Local file-processing flaw needing a victim to open a crafted module and a specific max_size=0 state, so AV:L, AC:H, UI:R; PR:N and heap corruption yields high C/I/A, scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-135706 is a high-severity heap buffer overflow in FFmpeg's optional libmodplug demuxer, a component typically absent from default builds. The flaw can corrupt memory merely by processing attacker-supplied module files, potentially enabling code execution or crashes, but only affects non-default configurations that explicitly enable libmodplug. Leadership should prioritize tracking down and updating any FFmpeg installations built with this option, as exploitation requires local access or tricking a user into opening a malicious file, and no public exploit has been observed.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Related Vulnerabilities in FFmpeg libavformat Memory and Input Validation Flaws
View all 9FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restric
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MA
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
EUVD-2026-133643
GHSA-5gx5-7mpg-28m5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB