GPAC before 26.07.0 contains a use-after-free vulnerability in xmt_node_end() that allows attackers to corrupt memory by attaching nodes from unrelated proto sub-graphs to field-replace commands. Attackers can supply a crafted XMT scene buffering such a command in a Conditional node, causing gf_node_try_destroy() to access the freed node, crashing MP4Box and corrupting the heap.
https://github.com/gpac/gpac/releases/tag/v26.07.0
https://github.com/gpac/gpac/issues/3752
https://github.com/gpac/gpac/commit/41056e87d2a1a104359937b23491c0156ed5e17b
https://github.com/gpac/gpac/blob/v26.02.0/src/scenegraph/commands.c#L65-L80