CVE-2021-3345 json
_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 set…
published 5y ago modified 4mo ago also EUVD-2021-26676
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
Summary
_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.
Patch / fix
- libgcrypt openSUSE Tumbleweed 1.9.4-1.2
opensuse advisories openSUSE-SU-2024:10941-1
- libgcrypt Arch Linux 1.9.1-1
arch linux advisories AVG-1505
Is CVE-2021-3345 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3345 updated cvss 9.8
libgcrypt: Heap buffer overflow in the block buffer management code
-
Red Hat Enterprise Linux 6 libgcrypt Red Hat Enterprise Linux 7 libgcrypt Red Hat Enterprise Linux 8 libgcrypt Red Hat Enterprise Linux 9 libgcryptnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.06% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.2 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
lists.gnupg.org
/pipermail/gnupg-announce/2021q1/000456.html
mailing-list, patch, vendor-advisory
-
lists.gnupg.org
/pipermail/gnupg-announce/2021q1/000455.html
mailing-list, vendor-advisory
-
gnupg.org
vendor-advisory
-
bugs.gentoo.org
/show_bug.cgi?id=767814
issue-tracking, vendor-advisory
- git.gnupg.org /cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=512c0c75276949f13b6373b5c04f7065af750b08
-
oracle.com
//security-alerts/cpujul2021.html
third-party-advisory
Sources
- CVE List CVE-2021-3345
- NVD CVE-2021-3345
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.