CVE-2021-3345
NixOS vulnerability analysis and mitigation

Overview

A critical security vulnerability (CVE-2021-3345) was discovered in Libgcrypt version 1.9.0. The vulnerability is a heap-based buffer overflow in the _gcry_md_block_write function located in cipher/hash-common.c, which occurs when the digest final function sets a large count value (GnuPG Announce, NVD).

Technical details

The vulnerability is classified as a heap-based buffer overflow (CWE-787) with a CVSS v3.1 base score of 7.8 (HIGH). The attack vector requires local access (AV:L), with low attack complexity (AC:L), requires low privileges (PR:L), no user interaction (UI:N), and can affect confidentiality, integrity, and availability at a high level (C:H/I:H/A:H) (NVD).

Impact

A successful exploitation of this vulnerability could allow an attacker to overflow a heap buffer with attacker-controlled data. The vulnerability is exploitable through simple means and can be triggered just by decrypting data, without requiring any verification or signature validation (GnuPG Announce).

Mitigation and workarounds

The vulnerability was fixed in Libgcrypt version 1.9.1. Users of version 1.9.0 are strongly advised to upgrade immediately to version 1.9.1 or later. Users of the 1.8 LTS branch are not affected by this vulnerability (GnuPG Announce).

Community reactions

The GnuPG Project issued an urgent announcement asking users to stop using Libgcrypt 1.9.0 immediately. The vulnerability was considered severe enough that the 1.9.0 tarballs were renamed on the FTP server to prevent scripts from downloading this version (GnuPG Announce).

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-4370CRITICAL10
  • NixOSNixOS
  • juju
NoYesApr 01, 2026
CVE-2026-34235MEDIUM6.9
  • NixOSNixOS
  • pjsip
NoYesMar 31, 2026
CVE-2026-34730MEDIUM5.5
  • PythonPython
  • copier
NoYesApr 02, 2026
CVE-2026-32113MEDIUM5.1
  • NixOSNixOS
  • cpe:2.3:a:discourse:discourse
NoYesMar 31, 2026
CVE-2026-34726MEDIUM4.4
  • PythonPython
  • copier
NoYesApr 02, 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