Skip to main content
Vulnerability Database/CVE-2024-30806

CVE-2024-30806: Axiosys Bento4 Heap Overflow DoS Vulnerability

CVE-2024-30806 is a heap overflow vulnerability in Axiosys Bento4 that triggers a denial of service condition. The flaw affects the AP4_Dec3Atom component and can be exploited through malicious media files. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published:

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-2024-30806 Overview

CVE-2024-30806 is a heap overflow vulnerability in Bento4 version 1.6.0-641-2-g1529b83. The flaw resides in the AP4_Dec3Atom::AP4_Dec3Atom constructor in Ap4Dec3Atom.cpp. An attacker can trigger the issue by supplying a crafted MP4 file to a Bento4 utility such as mp42aac, causing a denial of service. The vulnerability is tracked under [CWE-122: Heap-based Buffer Overflow].

Bento4 is an open-source toolkit maintained by Axiomatic Systems for reading, writing, and processing ISO-BMFF/MP4 media files. The library is embedded in numerous media pipelines, which broadens the exposure surface for malformed input processing.

Critical Impact

Processing a malicious MP4 file with Bento4 leads to a heap buffer overflow and process crash, resulting in denial of service for media-handling workflows.

Affected Products

  • Axiosys Bento4 1.6.0-641
  • Bento4 build 1.6.0-641-2-g1529b83
  • Downstream tools shipping the vulnerable AP4_Dec3Atom parser (for example, mp42aac)

Discovery Timeline

  • 2024-04-02 - CVE-2024-30806 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-30806

Vulnerability Analysis

The defect sits in the constructor for the AP4_Dec3Atom class, which parses the dec3 atom used to describe Enhanced AC-3 (EAC-3) audio configuration inside an MP4 container. During construction, the parser reads length and index fields from attacker-controlled bytes without adequately bounding them against the destination buffer on the heap.

When the parser writes beyond the allocated heap region, memory metadata or neighboring allocations become corrupted. The immediate observable effect is a crash, which translates into a denial of service for any workflow that invokes Bento4 against untrusted media. The flaw requires user interaction, since a victim or automated pipeline must open or convert the crafted file.

Root Cause

The root cause is missing bounds validation in AP4_Dec3Atom::AP4_Dec3Atom at Source/C++/Codecs/Ap4Dec3Atom.cpp. Values derived from the parsed atom are used to index or copy into a fixed heap allocation without verifying that the field count or payload size fits the destination. This is a classic [CWE-122] heap-based buffer overflow pattern in media-container parsing code.

Attack Vector

Exploitation is network-reachable because MP4 files flow through web uploads, email attachments, and media conversion services. An attacker crafts an MP4 file containing a malformed dec3 atom and delivers it to a target that uses Bento4 or a dependent tool such as mp42aac to parse the file. Opening or converting the file triggers the overflow and crashes the parsing process.

The vulnerability is confirmed to produce denial of service. Memory corruption primitives of this class can, in some configurations, be chained toward further impact, but no public exploit demonstrating that outcome is available. See the upstream report in GitHub Issue #914 and the aggregated details in the CVE-2024-30806 reference repository.

Detection Methods for CVE-2024-30806

Indicators of Compromise

  • Repeated crashes or abnormal terminations of mp42aac or other Bento4-based binaries while processing user-supplied MP4 files.
  • Core dumps or crash telemetry referencing AP4_Dec3Atom or Ap4Dec3Atom.cpp on the call stack.
  • MP4 files containing malformed dec3 (EAC-3 configuration) atoms submitted by untrusted sources.

Detection Strategies

  • Inventory systems that embed Bento4 and compare installed builds against 1.6.0-641-2-g1529b83 and earlier.
  • Instrument media conversion pipelines with crash reporting to capture signals from heap corruption inside AP4_Dec3Atom.
  • Run malformed MP4 corpora against Bento4 utilities in a sandbox using AddressSanitizer to surface the overflow during QA.

Monitoring Recommendations

  • Alert on repeated non-zero exit codes from media processing workers that handle user uploads.
  • Monitor container and job orchestration events for Bento4 processes terminating with SIGSEGV or SIGABRT.
  • Track volumes of rejected or failed MP4 conversions as a leading indicator of targeted DoS attempts.

How to Mitigate CVE-2024-30806

Immediate Actions Required

  • Identify all production and build systems that ship or embed Bento4 and quarantine untrusted MP4 inputs until the parser is updated.
  • Isolate Bento4-based conversion workers in sandboxed or containerized environments with resource limits to contain crashes.
  • Validate the structure of incoming MP4 files at the ingress layer and reject files with malformed dec3 atoms where possible.

Patch Information

No vendor-released patch is referenced in the NVD entry at publication. Monitor the upstream project through GitHub Issue #914 for a fix, and rebuild dependent tooling once an updated commit lands on the Bento4 repository.

Workarounds

  • Disable or avoid the mp42aac utility and other code paths that invoke AP4_Dec3Atom on untrusted content until a patched build is available.
  • Pre-filter MP4 uploads with a hardened probe such as a strict demuxer that validates atom sizes before handing files to Bento4.
  • Run Bento4 inside a seccomp-restricted or chrooted sandbox so that a crash is confined to a disposable worker process.
bash
# Configuration example: isolate Bento4 conversion workers
# Run mp42aac inside a resource-limited, read-only container
docker run --rm \
  --read-only \
  --network=none \
  --cap-drop=ALL \
  --memory=256m \
  --pids-limit=64 \
  -v /srv/uploads:/in:ro \
  -v /srv/output:/out \
  bento4-worker mp42aac /in/input.mp4 /out/output.aac

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.