CVE-2021-21860
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-21860 is an exploitable integer truncation vulnerability discovered in the MPEG-4 decoding functionality of GPAC Project Advanced Content library v1.0.1. The vulnerability was disclosed on August 16, 2021. When processing the 'trik' FOURCC code in the MPEG-4 container format, the library performs an integer truncation that can lead to an undersized buffer allocation (Talos Report).

Technical details

The vulnerability occurs in the trik_box_read function when processing MPEG-4 containers. The function truncates a 64-bit atom size to 32-bits and uses it to calculate a buffer size by multiplying it with the size of GF_TrickPlayBoxEntry structure. This multiplication can result in an integer overflow, leading to an undersized allocation. When the function subsequently reads data into this buffer, it causes a heap-based buffer overflow. The vulnerability has a CVSS v3.0 score of 8.8 (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) (Talos Report).

Impact

A successful exploitation of this vulnerability could result in memory corruption and potentially lead to arbitrary code execution under the context of the library. An attacker can trigger this vulnerability by convincing a user to open a specially crafted video file (Talos Report).

Mitigation and workarounds

The vulnerability has been fixed in subsequent releases. Users should upgrade to patched versions of the software. For Debian systems, the fix was included in version 1.0.1+dfsg1-4+deb11u1 for the bullseye distribution (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-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 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