Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-55654 Overview
CVE-2025-55654 is a use-after-free vulnerability [CWE-416] in the gf_filter_pid_get_packet function located in filter_core/filter_pid.c of GPAC MP4Box v2.4. An attacker can trigger the flaw by supplying a crafted media file to the MP4Box utility, causing a Denial of Service (DoS) condition. The vulnerability is local in nature and requires user interaction, specifically convincing a user to process the malicious input through MP4Box or a dependent application. Exploitation yields no confidentiality or integrity impact but produces a high availability impact through process crashes.
Critical Impact
Processing a crafted file with GPAC MP4Box v2.4 triggers a use-after-free in gf_filter_pid_get_packet, resulting in a Denial of Service.
Affected Products
- GPAC MP4Box v2.4
- GPAC filter core component (src/filter_core/filter_pid.c)
- Downstream distributions bundling the vulnerable GPAC release
Discovery Timeline
- 2026-10-19 - CVE-2025-55654 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2025-55654
Vulnerability Analysis
The vulnerability resides in GPAC's filter session subsystem, which manages pipelines of input and output packet identifiers (PIDs) for media processing. The gf_filter_pid_get_packet function retrieves packets from a PID queue during filter execution. Under specific conditions, a filter is removed and finalized while packet removal tasks remain pending in the queue. Subsequent accesses to the freed structures within the filter session trigger a use-after-free, destabilizing the process and causing MP4Box to abort.
The issue tracks to GitHub issue gpac/gpac#3249 and was discussed on the Openwall OSS-Security Mailing List.
Root Cause
The filter removal logic did not account for in-flight PID removal packets. When gf_list_count(filter->input_pids) reached zero and filter->finalized was not set, the filter proceeded with teardown even while packet-removal tasks were still queued. Those pending tasks later dereferenced freed PID or filter memory.
Attack Vector
An attacker crafts a malicious container file and delivers it to a victim running MP4Box. Local execution with user interaction is required, as reflected by the CVSS vector AV:L/UI:R. Successful parsing of the crafted input drives the filter session into the vulnerable teardown path.
// Patch excerpt - src/filter_core/filter_pid.c
pid->removed = GF_TRUE;
//filter still active and has no input, check if there are no more output pids valid. If so, remove filter
- if (!gf_list_count(filter->input_pids) && !filter->finalized) {
+ if (!gf_list_count(filter->input_pids) && !filter->finalized
+ //make sure we don't have any remove pid packets pending
+ && !filter->pid_rem_packet_pending
+ ) {
u32 i, nb_opid_rem=0;
for (i=0; i<filter->num_output_pids; i++) {
GF_FilterPid *apid = gf_list_get(filter->output_pids, i);
Source: GPAC commit 0ccd2927
A new pid_rem_packet_pending counter was added to the filter session structure to track outstanding removal tasks:
// Patch excerpt - src/filter_core/filter_session.h
volatile u32 detach_pid_tasks_pending;
volatile u32 nb_shared_packets_out;
volatile u32 abort_pending;
+ volatile u32 pid_rem_packet_pending;
GF_List *postponed_packets;
Source: GPAC commit 0ccd2927
Detection Methods for CVE-2025-55654
Indicators of Compromise
- Unexpected crashes or SIGSEGV terminations of MP4Box or GPAC-linked processes during media parsing.
- Core dumps referencing gf_filter_pid_get_packet or filter_pid.c in the call stack.
- Presence of untrusted MP4, NHML, or related container files on hosts running GPAC v2.4.
Detection Strategies
- Inventory endpoints and build systems for GPAC v2.4 binaries and libraries using software composition analysis.
- Instrument MP4Box runs with AddressSanitizer in CI to surface use-after-free conditions on sample corpora.
- Correlate process termination events for MP4Box with recently delivered media files via EDR telemetry.
Monitoring Recommendations
- Alert on repeated abnormal exits of MP4Box or GPAC-dependent services on servers performing media transcoding.
- Capture file provenance metadata for inputs delivered to batch media pipelines.
- Review centralized logs for crash signatures referencing GPAC filter session symbols.
How to Mitigate CVE-2025-55654
Immediate Actions Required
- Upgrade GPAC to a release containing commit 0ccd2927 or later.
- Restrict MP4Box execution to trusted media inputs and sandbox automated transcoding workflows.
- Remove or disable MP4Box on hosts where it is not required for business operations.
Patch Information
The GPAC maintainers addressed the issue in commit 0ccd2927c7145f5ab0352c5b15f787757b34eb18, which introduces a pid_rem_packet_pending counter and defers filter teardown until all pending PID removal packets have been processed. The fix also prevents NHML extensions for output on null or /dev/null. See the GitHub Issue Discussion for background.
Workarounds
- Avoid processing untrusted or attacker-supplied media files with MP4Box v2.4 until the patched build is deployed.
- Run MP4Box under a least-privilege account inside a container or seccomp-restricted sandbox to limit crash impact.
- Gate batch pipelines with file type and schema validation before invoking GPAC utilities.
# Build and install the patched GPAC from source
git clone https://github.com/gpac/gpac.git
cd gpac
git checkout 0ccd2927c7145f5ab0352c5b15f787757b34eb18
./configure && make -j$(nproc)
sudo make install
MP4Box -version
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

