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-2026-88377 Overview
CVE-2026-88377 is an integer underflow vulnerability [CWE-191] in Bento4 1.6.0.0, an open-source C++ library for processing MP4 and related media files. The flaw resides in the avcC and hvcC configuration atom parsers. A crafted MP4 file whose atom declares a size smaller than AP4_ATOM_HEADER_SIZE triggers an underflow in the payload-size calculation inside AP4_AvccAtom::Create() and AP4_HvccAtom::Create(). The resulting oversized buffer operation passes invalid or NULL pointers to the AP4_DataBuffer copy path, terminating the application.
Critical Impact
Processing a malicious MP4 file causes AP4_DataBuffer to copy from invalid memory, leading to application crash and local denial of service.
Affected Products
- Bento4 version 1.6.0.0
- Applications and tools that link against the vulnerable AP4_AvccAtom or AP4_HvccAtom parsers
- Media processing pipelines that invoke Bento4 utilities (for example mp4info, mp4dump, mp4fragment) on untrusted input
Discovery Timeline
- 2026-09-24 - CVE-2026-88377 published to the National Vulnerability Database (NVD)
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-88377
Vulnerability Analysis
Bento4 parses ISO Base Media File Format (ISOBMFF) atoms by reading a 32-bit size field followed by a four-character type code. The library subtracts AP4_ATOM_HEADER_SIZE (8 bytes) from the declared atom size to compute the remaining payload length. When the attacker supplies a size value less than 8, the subtraction underflows on unsigned arithmetic and produces a value near 0xFFFFFFFF.
This oversized payload length is then forwarded to AP4_AvccAtom::Create() or AP4_HvccAtom::Create(). The constructors invoke AP4_DataBuffer::SetData() with a buffer pointer that no longer corresponds to valid memory. The copy routine dereferences invalid or NULL pointers, resulting in process termination.
The vulnerability requires local access and user interaction with a malicious file. It does not grant code execution or data disclosure based on the available analysis.
Root Cause
The root cause is an unsigned integer underflow [CWE-191] in the atom length arithmetic. The parsers assume atom_size >= AP4_ATOM_HEADER_SIZE without validating the invariant before performing the subtraction. H.264 (avcC) and HEVC (hvcC) configuration record handlers inherit this unchecked path.
Attack Vector
An attacker crafts an MP4 container with an avcC or hvcC atom whose declared size is between 1 and 7 bytes. The victim opens the file with any application that uses Bento4 for parsing, muxing, or inspection. The parser underflows, triggers the faulty copy operation, and the host process terminates. The attack is local because the vulnerable code path is reached through file processing rather than a network listener.
See the GitHub Issue #1092 Discussion for the upstream technical thread.
Detection Methods for CVE-2026-88377
Indicators of Compromise
- Unexpected crashes or segmentation faults in processes that embed Bento4, such as mp4info, mp4dump, or custom media tooling
- MP4 files containing avcC or hvcC atoms with a declared size field less than 8
- Core dumps referencing AP4_AvccAtom::Create, AP4_HvccAtom::Create, or AP4_DataBuffer::SetData
Detection Strategies
- Scan ingestion pipelines for MP4 files whose atom size fields violate the size >= 8 invariant for avcC and hvcC boxes
- Monitor application telemetry for abnormal termination of media processing workers immediately after file open events
- Fuzz Bento4-based tools with mutated MP4 samples in a staging environment to confirm patch coverage
Monitoring Recommendations
- Alert on repeated crashes of the same media parser process within short time windows, which may indicate automated abuse
- Capture process exit codes and stack traces from containerized transcoding workloads for post-incident review
- Log the source and hash of any MP4 file that triggers a parser abort for threat hunting correlation
How to Mitigate CVE-2026-88377
Immediate Actions Required
- Inventory all internal tooling, build pipelines, and container images that bundle Bento4 1.6.0.0
- Restrict Bento4-based utilities to processing files from trusted sources until a fixed build is deployed
- Run media parsing workloads in sandboxed or ephemeral containers to contain crash impact
Patch Information
No vendor-released patch version is referenced in the NVD entry at the time of writing. Track the upstream GitHub Issue #1092 Discussion for fix commits and rebuild dependent binaries once a corrected release is available.
Workarounds
- Add a pre-parser validation step that rejects MP4 files containing any atom with a declared size less than AP4_ATOM_HEADER_SIZE (8 bytes)
- Isolate Bento4 execution under resource limits using systemd unit restrictions, seccomp, or container policies to prevent crash loops from exhausting host resources
- Disable automatic processing of user-supplied MP4 files in server-side workflows until a patched Bento4 build is in place
# Configuration example: restrict a Bento4 utility under systemd
[Service]
ExecStart=/usr/local/bin/mp4info %I
NoNewPrivileges=yes
PrivateTmp=yes
ProtectSystem=strict
MemoryMax=256M
TasksMax=32
Restart=no
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

