CVE-2026-134682 in MP4Boxinfo

Summary

by MITRE • 11/22/2026

GPAC MP4Box through 26.07.0 contains a use-after-free vulnerability in scene graph teardown that allows attackers to trigger access to freed memory via crafted scene files. A node shared across multiple PROTO node_code lists is freed by gf_sg_reset(), and gf_sg_proto_del() then calls gf_node_unregister() on the dangling pointer, crashing MP4Box.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/22/2026

The vulnerability identified in GPAC MP4Box versions up to 26.07.0 represents a critical memory safety flaw rooted in improper resource management during scene graph teardown operations. This use-after-free condition arises specifically when processing crafted media files that contain complex scene graphs involving PROTO definitions. The core technical failure occurs because the application fails to correctly manage the lifecycle of nodes shared across multiple PROTO node_code lists. When the system initiates a reset or cleanup sequence, it invokes gf_sg_reset(), which frees memory associated with these shared nodes prematurely. However, subsequent operations within the same teardown process still reference these objects, leading to access of deallocated memory regions that no longer contain valid data structures.

The operational mechanism of this exploit relies on the specific interaction between gf_sg_proto_del() and the underlying node registration system. After the initial free operation performed by gf_sg_reset(), the function gf_sg_proto_del() attempts to unregister nodes using gf_node_unregister(). Because the pointer passed to this function has already been invalidated, it points to a dangling reference rather than valid memory. This misuse of pointers triggers undefined behavior within the application runtime environment. In practice, as noted in reports, this typically manifests as an immediate crash or segmentation fault when MP4Box attempts to process such malformed input files during playback or conversion tasks.

From a security perspective, while the primary observed impact is denial of service through application instability, use-after-free vulnerabilities are historically significant because they can often be leveraged for arbitrary code execution under certain conditions. Attackers with knowledge of memory layout and heap allocation patterns might potentially manipulate the freed memory contents to control program flow or execute malicious payloads during subsequent allocations that reuse the same memory addresses. This aligns closely with CWE-416, which defines use-after-free as a class of vulnerabilities where pointers are used after they have been invalidated by freeing them. The vulnerability also reflects weaknesses in input validation and state management consistent with CWE-362 regarding concurrent execution issues if race conditions were involved, though here it is primarily an ordering error during cleanup sequences.

Mitigation strategies for this issue require both immediate patching and long-term architectural improvements within the GPAC codebase. Users should immediately update to a version of MP4Box that includes fixes for scene graph teardown logic, ensuring that reference counting mechanisms properly track shared nodes across PROTO definitions before any memory is released. Developers must implement stricter checks in gf_sg_proto_del() to verify node validity prior to calling unregister functions. Additionally, adopting automated static analysis tools and fuzzing techniques targeting media parsing engines can help detect similar lifecycle management errors early in the development cycle. Adhering to secure coding standards that emphasize explicit ownership semantics for shared resources will prevent recurrence of such dangling pointer scenarios in future releases.

Responsible

VulnCheck

Reservation

11/22/2026

Disclosure

11/22/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!