CVE-2026-145487 in GPAC
Summary
by MITRE • 12/05/2026
GPAC through 26.07.0 contains a heap use-after-free vulnerability in xmt_find_node() in loader_xmt.c that allows attackers to crash the application through freed forward-referenced nodes left in parser->peeked_nodes. Attackers can craft an XMT-A scene where a discarded USE-referenced node is later looked up by ROUTE or USE, causing denial of service when processed by MP4Box.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 12/05/2026
The vulnerability identified within GPAC versions through 26.07.0 represents a critical memory safety flaw located in the XMT scene loader component, specifically within the xmt_find_node function found in the source file loader_xmt.c. This issue is classified as a heap use-after-free condition, which occurs when software continues to use a pointer after it has been freed from its allocated memory block. In this specific context, the vulnerability stems from improper management of forward-referenced nodes within the parser's peeked_nodes data structure. When an XMT-A scene file contains complex node references that are discarded or removed during parsing but remain referenced by subsequent elements in the document stream, the application fails to invalidate these dangling pointers correctly. This lack of proper pointer invalidation allows attackers to craft malicious input files where a USE-referenced node is initially processed and then freed, yet remains accessible through later ROUTE or USE instructions that attempt to look up the now-invalidated memory address.
From an operational perspective, this vulnerability primarily facilitates denial-of-service attacks against applications utilizing GPAC for media processing, such as MP4Box. When a user opens a specially crafted XMT-A scene file containing these malformed node references, the application attempts to dereference the freed memory location during the parsing phase. Because the memory has already been released back to the heap allocator, it may have been reallocated for other purposes or marked as invalid by the operating system's memory management unit. The subsequent access attempt triggers a segmentation fault or an unhandled exception, causing the application to crash immediately and unexpectedly. This behavior prevents legitimate users from accessing media content and can disrupt workflows that rely on automated processing of multimedia assets, particularly in environments where GPAC is used for batch conversion or streaming preparation tasks.
The technical classification of this flaw aligns with CWE-416, which describes use after free vulnerabilities resulting from improper memory management practices. The attack vector involves the manipulation of object lifecycles within a parser, ensuring that an object remains logically referenced in the application state even though its underlying memory has been physically deallocated. This scenario is further contextualized by MITRE ATT&CK technique T1496, Resource Hijacking, specifically under the sub-technique for Denial of Service via resource exhaustion or instability caused by malformed inputs. While the primary impact observed in this instance is a crash rather than arbitrary code execution, use-after-free vulnerabilities are historically significant because they can often be exploited to achieve remote code execution if an attacker can control the data written into the freed memory region before it is reallocated and accessed again.
Mitigation strategies for this vulnerability require both immediate patching and long-term defensive coding practices. The most effective remediation is to upgrade GPAC to a version later than 26.07.0, where developers have implemented fixes to properly manage the lifecycle of forward-referenced nodes in loader_xmt.c. This likely involves ensuring that when a node is discarded or freed from peeked_nodes, all subsequent references are either resolved beforehand or explicitly nullified to prevent dangling pointer access. For organizations unable to patch immediately, implementing input validation filters at the network perimeter can help block malicious XMT-A files before they reach vulnerable instances of MP4Box. Additionally, enabling memory protection mechanisms such as Address Space Layout Randomization (ASLR) and Heap Protection features in modern operating systems can mitigate the exploitability of this vulnerability by making it more difficult for attackers to predict or control the state of freed memory regions during exploitation attempts.