# CVE-2025-60491: GPAC MP4Box heap use-after-free in dasher

Source: https://junglewise.ai/threats/cve-2025-60491-a-heap-use-after-free-in-the-dasher-flush-segment-function  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-21. Updated: 2026-10-21  
License: CC BY 4.0 with a link back

CVE-2025-60491 · Severity: info · Published 2026-10-21

GPAC MP4Box is a multimedia framework and tools for processing MP4 and DASH/HLS video segments. A heap use-after-free vulnerability in its dasher filter can be triggered by processing a specially crafted MPEG-TS file, allowing an attacker to cause a denial of service or potentially execute arbitrary code. An attacker could exploit this by providing a malformed media file to a system using MP4Box for video transcoding or packaging.

Technologies: [GPAC Project MP4Box](https://junglewise.ai/threats/technologies/gpac-project-mp4box). Vendors: [GPAC Project](https://junglewise.ai/threats/vendors/gpac-project).

## Quick answers

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

**How severe is CVE-2025-60491?** Informational severity, published 21 October 2026.

**Which products and versions are affected?** GPAC Project MP4Box before 2.5.

**Is there a fix for CVE-2025-60491?** Yes: fixed in MP4Box 2.5. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-60491 attacked?** It is attacked over the network or with local access, in a software library.

**Am I affected by CVE-2025-60491?** Check whether you run GPAC Project 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.

## How to fix

- Fixed in MP4Box 2.5

## Technical details

The vulnerability is a heap use-after-free in the dasher_flush_segment function within filters/dasher.c. It is triggered when processing crafted MPEG-TS input during DASH segmentation. The flaw allows reading or writing to freed memory, triggered by providing a malicious media file to the MP4Box command-line tool with DASH segmentation enabled.

## Affected products

- GPAC Project MP4Box before 2.5

## Timeline

- 2025-08-27: disclosed
- 2025-09-09: patched

## References

- [https://github.com/gpac/gpac/commit/f6128214feb69cd689e4b9944a2621bc4ad8faf0](https://github.com/gpac/gpac/commit/f6128214feb69cd689e4b9944a2621bc4ad8faf0)
- [https://github.com/gpac/gpac/issues/3326](https://github.com/gpac/gpac/issues/3326)

## Related threats

- [GPAC MP4Box heap use-after-free in AC4 descriptor parsing](https://junglewise.ai/threats/cve-2025-60476-a-heap-use-after-free-in-the-gf-odf-ac4-cfg-clean-list-function)
- [GPAC MP4Box NULL pointer dereference in AC4 parser](https://junglewise.ai/threats/cve-2025-60469-a-null-pointer-dereference-in-the-gf-ac4-presentation-ch-mode)
- [GPAC MP4Box null pointer dereference in GetESD](https://junglewise.ai/threats/cve-2025-60497-a-segmentation-violation-in-the-getesd-function-isomedia-track-c)
- [GPAC MP4Box segmentation violation in check_media_profile](https://junglewise.ai/threats/cve-2025-60493-a-segmentation-violation-in-the-check-media-profile-function)
- [GPAC MP4Box stack overflow in BIFS scene decoder](https://junglewise.ai/threats/cve-2025-60492-a-stack-overflow-in-the-gf-bifs-dec-node-function-bifs-field)
