Cloudanix VulnDB

CVE-2021-41457

High · 7.5

CVSS

7.5

EPSS

1.2%

Published

Oct 1, 2021

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in a media file processing tool can make the program crash when it tries to read certain specially made files, interrupting any automated video or audio handling workflows.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Application
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Stack buffer overflow in nhmldmx_init_parsing during NHML parsing causes memory corruption and immediate process termination.

Why it matters to the business

Media processing pipelines or tools using MP4Box become unavailable when handling malformed input, leading to workflow interruptions and potential data loss in automated media handling environments.

How an attack unfolds

An attacker crafts a malicious NHML-containing media file that triggers the overflow on parse; the file is fed to MP4Box via command line, library call, or automated processing, resulting in denial of service. Public exploit code exists but no named threat actors or ransomware campaigns are associated.

How to fix it

Upgrade GPAC MP4Box to a version containing the fix for the buffer handling logic in nhmldmx_init_parsing. If no patched release is available, replace MP4Box with an alternative parser or sandbox all media processing to limit blast radius.

How to confirm the fix worked

Confirm the installed MP4Box binary version is newer than 1.1.0 and test parsing of known-good and boundary NHML files without crash. Monitor process exit codes and core dumps during media ingestion.

Typical attack path

  1. Identify MP4Box instances or scripts that accept untrusted media files
  2. Craft NHML data that overflows the stack buffer in dmx_nhml.c
  3. Deliver the file through network share, upload, or command-line processing
  4. Trigger parsing via MP4Box invocation, causing immediate crash

How to detect it

Search application and system logs for segmentation faults or abnormal exits from MP4Box processes during media file handling; inspect stack traces containing nhmldmx_init_parsing for evidence of prior crashes on untrusted input.

What your security team should do

  • Inventory all uses of MP4Box in media pipelines and scripts
  • Apply available patches or migrate to maintained GPAC releases immediately
  • Implement file-type validation and sandboxing for any untrusted media input
  • Add MP4Box crash monitoring to operational dashboards given the public exploit availability

The record

There is a stack buffer overflow in MP4Box 1.1.0 at src/filters/dmx_nhml.c in nhmldmx_init_parsing which leads to a denial of service vulnerability.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 gpac 0 1.0.1+dfsg1-4+deb11u2
Ubuntu:20.04:LTS gpac 0 No fix
Ubuntu:22.04:LTS gpac 0 No fix
Ubuntu:24.04:LTS gpac 0 No fix
Ubuntu:Pro:14.04:LTS gpac 0 No fix
Ubuntu:Pro:16.04:LTS gpac 0 No fix
Ubuntu:Pro:18.04:LTS gpac 0 No fix
Ubuntu:Pro:20.04:LTS gpac 0 No fix
Ubuntu:Pro:22.04:LTS gpac 0 No fix
Ubuntu:Pro:24.04:LTS gpac 0 No fix

Related vulnerabilities