CVE-2021-21845
NixOS vulnerability analysis and mitigation

Overview

Multiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content library v1.0.1. A specially crafted MPEG-4 input in "stsc" decoder can cause an integer overflow due to unchecked arithmetic resulting in a heap-based buffer overflow that causes memory corruption. An attacker can convince a user to open a video to trigger this vulnerability. The vulnerability was discovered and disclosed in August 2021 (Talos Report).

Technical details

The vulnerability exists in the MPEG-4 decoding functionality where the library processes atoms from the container while noting the atom's "type" (FOURCC). When allocating space for reading the rest of an atom, the library may miscalculate the size due to an integer overflow or integer truncation, resulting in an undersized heap allocation. The vulnerability has a CVSS v3.0 score of 8.8 (HIGH) with vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The issue is classified as CWE-680 (Integer Overflow to Buffer Overflow) (Talos Report).

Impact

When exploited, this vulnerability can lead to memory corruption and potential code execution under the context of the library. The heap-based buffer overflow can allow attackers to execute arbitrary code by convincing a user to open a specially crafted video file (Talos Report).

Exploitability

The vulnerability can be triggered by convincing a user to open a specially crafted MPEG-4 video file. The attack requires user interaction but no special privileges. The vulnerability has been demonstrated to be exploitable through proof-of-concept code that sets specific values to trigger integer overflows leading to heap-based buffer overflows (Talos Report).

Mitigation and workarounds

For the Debian stable distribution (bullseye), these problems have been fixed in version 1.0.1+dfsg1-4+deb11u1. Users are recommended to upgrade their gpac packages to the latest version. The oldstable distribution (buster) is not affected by this vulnerability (Debian Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util-bdb
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util-ldap
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util-ldap
NoYesAug 06, 2026
CVE-2025-49506HIGH7.5
  • NixOS logoNixOS
  • apr-util-sqlite
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management