# CVE-2026-90794: GPAC MP4Box use-after-free in gf_sg_script_load

Source: https://junglewise.ai/threats/cve-2026-90794-gpac-mp4box-use-after-free-in-gf-sg-script-load  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-14. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-90794 · Severity: medium · CVSS 6.3 · Published 2026-09-14

GPAC is a multimedia framework that includes MP4Box, a utility for processing and creating MP4 video files. A vulnerability in MP4Box's scene graph processing allows an attacker to send a specially crafted XMT scene file that causes the application to reference freed memory, crashing the process and potentially enabling memory corruption attacks.

Technologies: [Gpac MP4Box](https://junglewise.ai/threats/technologies/mp4box). Vendors: [Gpac](https://junglewise.ai/threats/vendors/gpac).

## Quick answers

**Is CVE-2026-90794 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-90794 being exploited in the wild.

**How severe is CVE-2026-90794?** Medium severity, with a CVSS score of 6.3, published 14 September 2026.

**Which products and versions are affected?** Gpac MP4Box up to f1219cde.

**Is there a fix for CVE-2026-90794?** A patch was published on 2026-07-27: Fix commit 9eb40df4448b88d6a6ce3454657c06f47eff0b24 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-90794 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-90794?** Check whether you run Gpac MP4Box at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a use-after-free (CWE-416) in the gf_sg_script_load function within scenegraph/vrml_tools.c. While parsing malformed XMT scene files, the xmt_node_end function in loader_xmt.c can discard and free a Script node, but a dangling pointer to that node is queued for later processing. When gf_sg_command_apply calls gf_sg_script_load with the freed pointer, a heap-use-after-free read occurs. The vulnerability is remotely triggerable via a crafted XMT file passed to MP4Box. The attack requires network or local file access to provide the malicious XMT input. The fix (commit 9eb40df4) tracks whether a node was discarded and prevents queuing freed nodes for deferred script loading. Upgrade to version abi-16.23 or later to remediate.

## Affected products

- GPAC MP4Box up to f1219cde

## Timeline

- 2026-09-14: disclosed
- 2026-07-27: patched: Fix commit 9eb40df4448b88d6a6ce3454657c06f47eff0b24

## References

- [https://github.com/Ech06/CVE_submit/blob/main/gpac_3799.md](https://github.com/Ech06/CVE_submit/blob/main/gpac_3799.md)
- [https://github.com/gpac/gpac/](https://github.com/gpac/gpac/)

## Related threats

- [GPAC MP4Box segmentation fault in dump_isom_saps](https://junglewise.ai/threats/cve-2025-55667-a-segmentation-violation-in-the-dump-isom-saps-function-mp4box)
- [GPAC MP4Box use-after-free in gf_filter_pid_get_packet](https://junglewise.ai/threats/cve-2025-55654-a-use-after-free-in-the-gf-filter-pid-get-packet-function-filter)
- [GPAC MP4Box floating point exception in gf_parse_lfrac](https://junglewise.ai/threats/cve-2025-55653-gpac-mp4box-v2-4-was-discovered-to-contain-a-floating-point)
- [GPAC MP4Box heap buffer overflow in stbl_AddSize](https://junglewise.ai/threats/cve-2025-55640-a-heap-buffer-overflow-in-the-stbl-addsize-function-isomedia-stbl)
- [GPAC MP4Box use-after-free in gf_node_deactivate_ex](https://junglewise.ai/threats/cve-2026-90827-gpac-mp4box-use-after-free-in-gf-node-deactivate-ex)
