CVE-2021-46238
Medium · 5.5CVSS
5.5
EPSS
0.6%
Published
Jan 21, 2022
CISA due date
—
Cloudanix analysis
A flaw in popular media software can make it stop working when someone opens a specially made file, interrupting video or audio tasks.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow in gf_node_get_name during scene graph parsing causes out-of-bounds writes on the stack and immediate process termination.
Why it matters to the business
Media processing pipelines and tools that rely on GPAC can be forced offline by a single crafted file, interrupting content creation, transcoding, or playback workflows with no data loss but clear downtime.
How an attack unfolds
An attacker creates a specially malformed scene graph or MP4 container that supplies an oversized name string to gf_node_get_name; when a victim opens the file locally with GPAC the overflow occurs and the application crashes, achieving denial of service. Public exploit code is available.
How to fix it
Upgrade GPAC to the first version containing the fix for this stack overflow (post-1.1.0) or replace GPAC with an unaffected media library. Until upgraded, restrict GPAC to trusted files only.
How to confirm the fix worked
Confirm GPAC version is newer than 1.1.0, then attempt to open the original proof-of-concept file and verify the process no longer crashes.
Typical attack path
- Attacker crafts malicious media file containing oversized node name
- Victim opens the file with vulnerable GPAC binary
- gf_node_get_name is invoked during scene graph construction
- Stack overflow triggers and process terminates
How to detect it
Review system and application logs for abrupt GPAC terminations or segmentation faults when processing media files; correlate with file creation or download events immediately preceding the crash.
What your security team should do
- Inventory all systems running GPAC and prioritize upgrade to a fixed release
- Block or sandbox untrusted media files from being processed by GPAC until patched
- Add GPAC crash telemetry to monitoring to detect future similar issues
The record
GPAC v1.1.0 was discovered to contain a stack overflow via the function gf_node_get_name () at scenegraph/base_scenegraph.c. This vulnerability can lead to a program crash, causing a Denial of Service (DoS).
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | gpac | 0 | No fix |
| 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-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
- CVE-2021-46237 An untrusted pointer dereference vulnerability exists in GPAC v1.1.0 via the function… Also affects gpac