Executive brief
GPAC is an open-source multimedia framework used for packaging and streaming video content. A vulnerability in its MP4Box component could allow a local user to cause the application to crash by processing a specially crafted MP4 file. This could lead to a denial-of-service condition, impacting the availability of media processing workflows.
Technical details
A double free vulnerability exists in the gf_isom_nalu_sample_rewrite function within src/isomedia/avc_ext.c of GPAC's MP4Box component. The issue stems from improper management of the nalu_out_bs argument during NALU sample rewriting, particularly when using the '-cat' command to concatenate media files. A local attacker can exploit this by providing a specially crafted MP4 file, leading to memory corruption and an application crash (abort). A patch has been released in commit f29f955f2a3b5e8e507caad3e52319f961bf37bf to ensure proper bitstream content handling and prevent the double free.
Affected products
- GPAC GPAC up to 2.5-DEV
Timeline
- 2025-11-27: disclosed: Issue reported on GitHub by TimChan2001
- 2026-07-06: advisory: NVD publication date
- 2025-11-27: patched: Fix committed to GPAC repository
References
- https://github.com/TimChan2001/pocs/raw/refs/heads/main/poc-gpac-1
- https://github.com/gpac/gpac/
- https://github.com/gpac/gpac/commit/f29f955f2a3b5e8e507caad3e52319f961bf37bf
- https://github.com/gpac/gpac/issues/3403
- https://vuldb.com/cve/CVE-2025-15667
- https://vuldb.com/submit/846839
- https://vuldb.com/vuln/376292