Cloudanix VulnDB

CVE-2021-45258

Medium · 5.5

CVSS

5.5

EPSS

0.6%

Published

Dec 22, 2021

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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.

Exploit Available
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

  1. Attacker crafts a media file containing a malformed BIFS proto list
  2. File is delivered via email, download, or storage media
  3. Victim or automated workflow invokes GPAC on the file
  4. gf_bifs_dec_proto_list overflows the stack and triggers a crash
  5. 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