CVE-2026-134666 in MP4Box
Summary
by MITRE • 11/22/2026
GPAC MP4Box through 26.07.0 contains a use-after-free vulnerability in the XMT-A scene loader because xmt_node_end() frees unattached nodes but leaves them on the parser node stack. Attackers can persuade users to process a crafted XMT file whose text content makes xmt_text_content() pass the freed node to gf_node_get_tag(), reading freed heap memory and crashing MP4Box.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/22/2026
The vulnerability identified in GPAC MP4Box versions up to 26.07.0 represents a critical use-after-free condition within the XMT-A scene loader component. This flaw stems from an improper management of object lifecycles during the parsing process, specifically when handling XML-based multimedia content defined by the MPEG-4 Part 19 standard for Extensible Media Tool (XMT). The core technical issue resides in the xmt_node_end function, which is responsible for finalizing node processing. When this function encounters nodes that are not attached to a parent structure, it proceeds to free their associated memory resources. However, the implementation fails to remove these freed nodes from the internal parser stack data structure. This discrepancy creates a dangling pointer scenario where the application retains references to memory locations that have already been deallocated and potentially reused by other system processes or allocations.
From an operational perspective, this architectural flaw allows for remote code execution potential through denial of service attacks when malicious actors distribute crafted XMT files designed to exploit this specific sequence. An attacker can construct a file where the text content triggers xmt_text_content() to interact with these unattached nodes. By passing the pointer to gf_node_get_tag(), which expects valid, allocated memory objects, the application attempts to read from or write to freed heap memory. This action typically results in immediate program termination due to segmentation faults or access violations, effectively crashing MP4Box and disrupting any workflow dependent on this media processing tool. In more sophisticated attack scenarios involving controlled heap grooming, such use-after-free conditions can potentially be leveraged to achieve arbitrary code execution by manipulating the contents of the freed memory before it is reallocated for malicious purposes.
This vulnerability aligns with Common Weakness Enumeration standard CWE-416, which describes Use After Free errors where a pointer references memory that has been deallocated and may have been reused. The exploitation technique falls under MITRE ATT&CK framework techniques related to initial access via crafted files, specifically leveraging software vulnerabilities in media parsers or XML processors. Such attacks often target users who are persuaded to open maliciously constructed documents, relying on the trust placed in legitimate-looking file formats like XMT-A for multimedia presentation and interaction.
Mitigation strategies should prioritize immediate updates to GPAC MP4Box versions newer than 26.07.0 where this issue has been addressed by developers correcting the node stack management logic. Until an update is applied, organizations can implement input validation controls at network perimeter devices or endpoint protection systems to detect and block suspicious XMT files containing malformed structures that trigger the vulnerable code path. Additionally, enabling memory corruption protections such as Address Space Layout Randomization (ASLR) and Data Execution Prevention (DEP) on affected systems can reduce the likelihood of successful exploitation by making it more difficult for attackers to predict memory layouts or execute injected shellcode from the corrupted heap regions.