CVE-2021-3345: gnupg libgcrypt Out-of-bounds Write
Vulnerability summary
CVE-2021-3345 is a high (CVSS 7.8) Out-of-bounds Write vulnerability in gnupg libgcrypt. EPSS estimates a 1.07% chance of exploitation in the next 30 days, higher than 66% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 29-01-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
_gcry_md_block_write in cipher/hash-common.c in Libgcrypt version 1.9.0 has a heap-based buffer overflow when the digest final function sets a large count value. It is recommended to upgrade to 1.9.1 or later.
CVSS metrics
3 scores · 2 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.07%
Chance of exploitation in the next 30 days
Percentile
66%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 1.06% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu2 products
- libgcrypt11< 1.5.3-2ubuntu4.6+esm1
- libgcrypt20< 1.6.5-2ubuntu0.6 | < 1.8.1-4ubuntu1.2 | < 1.8.5-5ubuntu1
Gnupg1 product
- libgcrypt1.9.0
Oracle1 product
3 vendors · 4 products
References
9 links- git.gnupg.org/cgi-bin/…X Refsource MISC
- lists.gnupg.org/pipermail/gnupg-announce/2021q1/000455.htmlX Refsource MISCREPORTMailing ListVendor Advisory
- lists.gnupg.org/pipermail/gnupg-announce/2021q1/000456.htmlX Refsource MISCREPORTMailing ListPatchVendor Advisory