CVE-2021-41457
High · 7.5CVSS
7.5
EPSS
1.2%
Published
Oct 1, 2021
CISA due date
—
Cloudanix analysis
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.
- 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
- Identify MP4Box instances or scripts that accept untrusted media files
- Craft NHML data that overflows the stack buffer in dmx_nhml.c
- Deliver the file through network share, upload, or command-line processing
- 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
- CVE-2023-4679 A use after free vulnerability exists in GPAC version 2.3-DEV-revrelease, specifically in… Also affects gpac
- CVE-2023-46931 GPAC 2.3-DEV-rev605-gfc9e29089-master contains a heap-buffer-overflow in… Also affects gpac
- CVE-2021-46311 A NULL pointer dereference vulnerability exists in GPAC v1.1.0 via the function… Also affects gpac
- CVE-2021-46313 The binary MP4Box in GPAC v1.0.1 was discovered to contain a segmentation fault via the… Also affects gpac
- CVE-2021-46234 A NULL pointer dereference vulnerability exists in GPAC v1.1.0 via the function… Also affects gpac
- CVE-2021-46238 GPAC v1.1.0 was discovered to contain a stack overflow via the function gf_node_get_name… Also affects gpac
- CVE-2021-46240 A NULL pointer dereference vulnerability exists in GPAC v1.1.0 via the function… Also affects gpac
- CVE-2021-46239 The binary MP4Box in GPAC v1.1.0 was discovered to contain an invalid free vulnerability… Also affects gpac