CVE-2025-55648
Description
A heap buffer overflow in GPAC MP4Box v2.4's gf_opus_parse_packet_header function causes DoS via crafted MP4 with corrupted stsz data.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A heap buffer overflow in GPAC MP4Box v2.4's gf_opus_parse_packet_header function causes DoS via crafted MP4 with corrupted stsz data.
Vulnerability
A heap buffer overflow exists in the gf_opus_parse_packet_header function in media_tools/av_parsers.c of GPAC MP4Box prior to commit 61bbfd2e89553373ba3449b8ec05b5f098d732a5. The vulnerability occurs when the MP4Box utility is used to dump or process a crafted MP4 file containing corrupted sample-size (stsz) data for an Opus audio track. The function does not sufficiently validate the input buffer length before parsing the Opus packet header, leading to a heap-buffer-overflow READ of size 1 at line 11297 [1]. Affected versions include GPAC MP4Box v2.4 and earlier versions without the fix.
Exploitation
An attacker must provide a specially crafted MP4 file to a target user or service that invokes MP4Box to process the file. No authentication or special privileges are required; the attack vector is network-based (AV:N) and requires user interaction (UI:R) such as opening the malicious file or having an application automatically process it. The exploitation sequence involves delivering the crafted MP4 with a corrupted stsz sample-size table for an Opus track, triggering the buffer over-read when gf_opus_parse_packet_header is called [1].
Impact
Successful exploitation results in a denial of service (DoS) due to a heap-buffer-overflow, which can cause the application to crash. The integrity and availability of the system are affected (C:L, I:L, A:L per CVSS v3.1 [1]). Information disclosure may also be possible due to the out-of-bounds read, but the primary impact is application termination.
Mitigation
The fix is implemented in commit 61bbfd2e89553373ba3449b8ec05b5f098d732a5. Users should update GPAC/MP4Box to a version that includes this commit or later. No workaround is mentioned in the available references. If unable to update, avoid processing untrusted MP4 files with MP4Box. The vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) at the time of writing.
AI Insight generated on Jun 15, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
Root cause
"Insufficient buffer length validation in gf_opus_parse_packet_header allows a heap-buffer-overflow when parsing a crafted Opus packet header."
Attack vector
An attacker supplies a crafted MP4 file with corrupted sample-size (stsz) data for an Opus track [ref_id=1]. When MP4Box processes the file (e.g., `MP4Box 12_poc.mp4 -dxml`), `gf_opus_parse_packet_header()` fails to validate the input buffer length before reading the Opus packet header, causing a heap-buffer-overflow READ of size 1 [ref_id=1]. No authentication or special privileges are required beyond the ability to provide the crafted file [ref_id=1].
Affected code
The heap buffer overflow occurs in `gf_opus_parse_packet_header()` in `media_tools/av_parsers.c` (line 11297). The function is reached via `gf_inspect_dump_opus_internal()` in `filters/inspect.c` and `dump_isom_opus()` in `applications/mp4box/filedump.c` when MP4Box dumps a crafted Opus track.
What the fix does
The fix commit (61bbfd2e89553373ba3449b8ec05b5f098d732a5) adds a length check in `gf_opus_parse_packet_header()` to ensure the input buffer is large enough before parsing the Opus packet header [ref_id=1]. This prevents the out-of-bounds read that occurred when corrupted stsz data caused `Media_GetSample()` to allocate a buffer smaller than the data the parser subsequently tried to read.
Preconditions
- inputAttacker must supply a crafted MP4 file with corrupted stsz data for an Opus track
- configVictim must run MP4Box (e.g., with -dxml flag) on the crafted file
Generated on Jun 15, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
2News mentions
0No linked articles in our index yet.