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).

Exploitability

The vulnerability was reported to be easily exploitable, requiring immediate action for users of version 1.9.0. The bug was introduced during the 1.9 development phase with commit e76617cbab018dd8f41fd6b4ec6740b5303f7e13 and was discovered by Tavis Ormandy while testing GnuPG (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-78662HIGH7.5
  • Docker logoDocker
  • argo-workflows-fips-4.1
NoYesSep 02, 2026
CVE-2026-56855HIGH7.5
  • Docker logoDocker
  • grafana-13.2
NoYesSep 02, 2026
CVE-2026-84642HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:thunderbird
NoYesSep 01, 2026
CVE-2026-84641HIGH7.5
  • NixOS logoNixOS
  • thunderbird
NoYesSep 01, 2026
CVE-2026-32773MEDIUM6.1
  • NixOS logoNixOS
  • spark
NoYesSep 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