CVE-2021-46237
Medium · 5.5CVSS
5.5
EPSS
0.5%
Published
Jan 21, 2022
CISA due date
—
Cloudanix analysis
A bug in media-handling software can let attackers crash programs by feeding them bad files, potentially interrupting services until the software is updated.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Untrusted pointer dereference in gf_node_unregister at scenegraph/base_scenegraph.c allows memory corruption that crashes the process.
Why it matters to the business
Attackers can cause denial of service by supplying specially crafted input, leading to application or service outages; the issue affects widely used multimedia handling components with an available exploit and long public exposure window.
How an attack unfolds
An attacker crafts a malicious media file or scene graph input that triggers the vulnerable function during parsing; when the application processes the input the dereference occurs, corrupting memory and terminating the process. Public exploit code exists and the flaw has been known for over four years.
How to fix it
Upgrade envoyproxy/envoy to commit 9b1c3962172a972bc0359398af6daa3790bb59db or later; rebuild any dependent packages that embed the vulnerable GPAC code and test for continued crashes with known-bad inputs.
How to confirm the fix worked
Confirm the binary or library no longer contains the vulnerable gf_node_unregister implementation by checking the commit hash or version string; run regression tests with the original proof-of-concept input to verify the crash no longer occurs.
Typical attack path
- Obtain or generate a malicious file or input stream targeting the scene graph parser
- Deliver the input to the affected application (local file open or network delivery)
- Trigger processing through gf_node_unregister
- Cause untrusted pointer dereference resulting in crash
How to detect it
Review application crash logs and core dumps around the time of suspected incidents for segmentation faults originating in scenegraph or base_scenegraph code; correlate with file-processing events involving untrusted media.
What your security team should do
- Apply the listed commit or newer release immediately given the public exploit and 1733 days of exposure
- Inventory all builds that incorporate GPAC or envoy and schedule upgrades
- Add the vulnerable function and commit identifiers to code-scanning and dependency checks
- Monitor for new EPSS increases or KEV listing
The record
An untrusted pointer dereference vulnerability exists in GPAC v1.1.0 via the function gf_node_unregister () at scenegraph/base_scenegraph.c. This vulnerability can lead to 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-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