Executive Summary
A use-after-free vulnerability in GPAC MP4Box through 26.07.0 allows attackers to access freed heap memory by supplying a crafted XMT file. This vulnerability has a CVSS score of 6.6 and is classified as Medium severity. The vulnerability is not actively exploited but could potentially lead to crashes or code execution.
Technical Analysis
The vulnerability is a use-after-free issue in the XMT scene loader of GPAC MP4Box. When xmt_parse_element() replaces an SFNode field child, the freed node stays cached in parser->peeked_nodes and a later DEF lookup passes it to gf_node_get_name(), causing MP4Box to crash. This occurs because of improper handling of memory in the XMT scene loader, specifically in the loader_xmt.c and base_scenegraph.c files.
How It Gets Exploited
An attacker could exploit this vulnerability by supplying a crafted XMT file to GPAC MP4Box through 26.07.0. The attacker would need to provide a specially designed XMT file that, when processed by MP4Box, triggers the use-after-free condition. This could happen when the xmt_parse_element() function replaces an SFNode field child, and the freed node is still referenced later in the parsing process. Successful exploitation could lead to a crash or potentially allow for arbitrary code execution.
Impact Assessment
The vulnerability affects GPAC MP4Box versions up to and including 26.07.0. Users of affected versions are at risk of crashes or potential code execution if they process maliciously crafted XMT files. The CVSS score of 6.6 indicates a Medium severity level, with impacts on confidentiality, integrity, and availability being Low, Low, and High, respectively.
Recommended Actions
To mitigate this vulnerability, users should update GPAC MP4Box to a version beyond 26.07.0. Additionally, users should be cautious when processing XMT files from untrusted sources, as these files could potentially exploit this vulnerability. Implementing proper input validation and ensuring that GPAC MP4Box is updated to the latest version can significantly reduce the risk associated with this vulnerability.
Sources
- National Vulnerability Database (NVD)
- https://nvd.nist.gov/vuln/detail/CVE-2026-134665