# CVE-2021-3345: gcrymdblockwrite in cipher/hash-common.c in Libgcrypt version 1.9.0 has a heap-based buffer overflow when the digest final function sets a…

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.07%, higher than 65% of CVEs (2026-12-02)
- Published: 2021-01-29T14:20:31.000Z
- Modified: 2026-06-17T04:04:58.500Z
- Weaknesses: CWE-787
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnupg libgcrypt: 1.9.0
- oracle communications_billing_and_revenue_management: 12.0.0.3.0

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=512c0c75276949f13b6373b5c04f7065af750b08>
- <https://lists.gnupg.org/pipermail/gnupg-announce/2021q1/000455.html> (mailing-list, vendor-advisory)
- <https://lists.gnupg.org/pipermail/gnupg-announce/2021q1/000456.html> (mailing-list, patch, vendor-advisory)
- <https://gnupg.org> (vendor-advisory)
- <https://bugs.gentoo.org/show_bug.cgi?id=767814> (issue-tracking, vendor-advisory)
- <https://www.oracle.com//security-alerts/cpujul2021.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-3345](https://www.cve.org/CVERecord?id=CVE-2021-3345), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3345](https://nvd.nist.gov/vuln/detail/CVE-2021-3345), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3345 · Whole record: https://cve.day/CVE-2021-3345.json · Rebuilt by cve.day 2026-11-25T22:57:59.756Z
