CVE-2021-45258
Medium · 5.5CVSS
5.5
EPSS
0.6%
Published
Dec 22, 2021
CISA due date
—
Cloudanix analysis
A bug in media-handling software can make the program suddenly stop working when it tries to read certain unusual files, interrupting any tasks that depend on that software.
- 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
The vulnerability triggers a stack-based buffer overflow inside gf_bifs_dec_proto_list during BIFS protocol list decoding, causing an out-of-bounds write that results in a segmentation fault and immediate process termination.
Why it matters to the business
Organizations relying on GPAC for media parsing or transcoding may encounter sudden application crashes when handling certain untrusted files, producing unplanned downtime and potential loss of automated media pipelines.
How an attack unfolds
An attacker prepares a specially crafted media container embedding a malicious BIFS scene that overflows the stack buffer in gf_bifs_dec_proto_list. When a user or automated process opens the file locally with GPAC, the overflow occurs, the process crashes, and service is denied. Public exploit code is available, though the flaw requires local file handling and has seen only modest adoption.
How to fix it
Upgrade GPAC to the first release containing a corrected gf_bifs_dec_proto_list implementation as soon as it becomes available. Until then, restrict GPAC execution to trusted file sources and consider sandboxing or replacing the component in critical pipelines.
How to confirm the fix worked
Reproduce the original crash with a known triggering file on the current build, then confirm the same file no longer crashes after applying the patched binary; additionally verify the vulnerable function symbol is absent or bounds-checked in the updated library.
Typical attack path
- Attacker crafts a media file containing a malformed BIFS proto list
- File is delivered via email, download, or storage media
- Victim or automated workflow invokes GPAC on the file
- gf_bifs_dec_proto_list overflows the stack and triggers a crash
- Application terminates, denying service
How to detect it
Search system and application logs for segmentation fault entries immediately following GPAC process launches, especially when the command line references media files; correlate with file-creation timestamps or user activity around the crash time.
What your security team should do
- Block or quarantine untrusted media files from reaching GPAC instances until patches are deployed
- Subscribe to GPAC release announcements and schedule rapid upgrade testing
- Add GPAC crash signatures to endpoint monitoring to surface unexpected terminations
- Evaluate replacement libraries for media processing where GPAC use can be reduced
The record
A stack overflow vulnerability exists in gpac 1.1.0 via the gf_bifs_dec_proto_list function, which causes a segmentation fault and application crash.
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