CVE-2026-137905 in FFmpeg
Summary
by MITRE • 11/27/2026
FFmpeg 5.0 before 8.1.3 contains a NULL pointer dereference vulnerability in parse_imf_asset_map_from_xml_dom() in libavformat/imfdec.c that does not check for a missing or empty Path element in an asset map Chunk. Attackers can supply a crafted IMF ASSETMAP.xml whose Chunk lacks a Path, passing a NULL URI to the path handling functions and crashing the process.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified in FFmpeg versions prior to 8.1.3 represents a critical input validation failure within the Internet Media Format (IMF) demuxer module. Specifically, the flaw resides in the parse_imf_asset_map_from_xml_dom() function located in libavformat/imfdec.c. This component is responsible for parsing XML-based asset map files used to describe media content structures in professional video workflows. The core technical deficiency involves a lack of defensive programming practices regarding null pointer checks when processing specific elements within the parsed XML structure. When the parser encounters an IMF ASSETMAP.xml file where a Chunk element lacks a required Path attribute or contains an empty value, the internal logic fails to validate this absence before proceeding with subsequent operations.
This oversight leads directly to a NULL pointer dereference condition. The code attempts to pass a null URI string to path handling functions that expect valid memory addresses for processing. Because these downstream functions do not account for null inputs in this specific context, they attempt to access or manipulate the invalid address, resulting in an immediate application crash. This behavior classifies as CWE-476, which defines NULL Pointer Dereference vulnerabilities where a program dereferences a pointer that it expects to be valid but is actually null, leading to crashes or potential denial of service conditions.
From an operational perspective, this vulnerability primarily impacts the availability and stability of systems relying on FFmpeg for processing IMF-compliant media files. Attackers can exploit this by supplying a specially crafted ASSETMAP.xml file designed specifically to trigger the missing Path condition. Upon ingestion of such a malicious asset map, the affected process will terminate unexpectedly due to the segmentation fault caused by the null dereference. While the immediate impact is typically limited to denial of service through application crash, in environments where FFmpeg operates as part of an automated pipeline or server-side processing unit, repeated exploitation could lead to significant operational disruptions and resource exhaustion if restart mechanisms are not robustly implemented.
The attack vector aligns with ATT&CK technique T1496, Resource Hijacking, specifically under the sub-technique for Denial of Service via application crashes. It also relates to CWE-20, Improper Input Validation, as the root cause is the failure to verify that required data fields are present and non-empty before use. This vulnerability highlights the importance of rigorous input sanitization in media parsing libraries, particularly when handling complex XML structures common in broadcast and post-production environments where IMF standards are prevalent.
Mitigation strategies should focus on immediate patching by upgrading FFmpeg to version 8.1.3 or later, which addresses this specific validation gap. For systems unable to upgrade immediately, input filtering at the network perimeter can be employed to block asset map files that lack required Path elements in their Chunk definitions. Additionally, implementing robust error handling and process monitoring tools can help detect and restart crashed instances quickly, minimizing downtime. Developers integrating FFmpeg should also ensure that any custom wrappers or extensions around the library include additional validation layers for XML parsing results to prevent similar issues if upstream fixes are delayed.