CVE-2021-3405
NixOS vulnerability analysis and mitigation

Overview

A heap overflow vulnerability (CVE-2021-3405) was discovered in libebml versions before 1.4.2. The vulnerability exists in the implementation of EbmlString::ReadData and EbmlUnicodeString::ReadData functions. The issue was discovered in February 2021 and affects the library used for reading and writing files in the EBML (Extensible Binary Meta Language) format (NVD, Gentoo Security).

Technical details

The vulnerability stems from a miscalculation in the buffer size allocation for string storage. On 32-bit builds, the value returned from GetSize() is implicitly cast to size_t in the new operator call, which can lead to truncation of the length value. For example, if the string element length is claimed to be 0xffffffff, the resultant allocation becomes 0x100000000, but the cast to 32-bit size_t drops the top bit, resulting in a zero-size allocation while still attempting to copy the full data length (Github Issue). The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability could allow an attacker to trigger a heap-based buffer overflow, potentially leading to arbitrary code execution when processing maliciously crafted input files. This is particularly concerning as the vulnerability is reachable through popular applications that use libebml, such as VLC media player (Github Issue, Gentoo Security).

Exploitability

The vulnerability is particularly exploitable on 32-bit systems when the string element is maliciously placed at the end of the file to be parsed. A proof-of-concept exploit has been demonstrated using VLC on Ubuntu 10.10, confirming the practical exploitability of this vulnerability (Github Issue).

Mitigation and workarounds

The vulnerability has been fixed in libebml version 1.4.2. Various Linux distributions have released security updates to address this issue, including Fedora, Debian, and Gentoo. Users are strongly advised to upgrade to version 1.4.2 or later of libebml (Debian LTS, Fedora Update, Gentoo Security).

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-75874CRITICAL10
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74990CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74989CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74988CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74987CRITICAL9.8
  • NixOS logoNixOS
  • MozillaFirefox
NoYesAug 18, 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