CVE-2021-3345: gnupg libgcrypt Out-of-bounds Write
CVSS: 7.8v3.1HighModified
AliasesUBUNTU-CVE-2021-3345
Published 29-01-2021Last modified 03-08-2024
Vulnerability summary
CVE-2021-3345 is a high (CVSS 7.8) Out-of-bounds Write vulnerability in gnupg libgcrypt. EPSS estimates a 1.06% chance of exploitation in the next 30 days, higher than 64% of scored vulnerabilities.
CVSS score
7.8/10
010
High · v3.1 (NVD)EPSS score
1.06%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
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 versionsHigh 7.8Preferred score · NVD (NIST)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HSourcesAll 2 agree
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
High 7.2Preferred score · NVD (NIST)
AV:L/AC:L/Au:N/C:C/I:C/A:CSourcesSingle source
EPSS trend
Probability
1.06%
Chance of exploitation in the next 30 days
Percentile
64%
Versus all other CVEs
30-day change
0.00 pp
From 1.06% on 18-09-2026
18-09-202618-10-2026
EPSS score1.06%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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