CVE-2021-3345
7.8 HIGH_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 s...
Published: 2021-01-29 · Last updated: 2026-06-17
Severity and scoring
- CVSS
- 7.8 HIGH
- Vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CWE
- CWE-787
Affected products
| Vendor | Product |
|---|---|
| gnupg | communications_billing_and_revenue_management, libgcrypt |
| oracle | communications_billing_and_revenue_management, libgcrypt |
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2021-3345
- [Vendor advisory]https://bugs.gentoo.org/show_bug.cgi?id=767814
- [Other]https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=512c0c75276949f13b6373b5c04f7065af750b08
- [Vendor advisory]https://gnupg.org
- [Vendor advisory]https://lists.gnupg.org/pipermail/gnupg-announce/2021q1/000455.html
- [Patch]https://lists.gnupg.org/pipermail/gnupg-announce/2021q1/000456.html
- [Other]https://www.oracle.com//security-alerts/cpujul2021.html
- [Vendor advisory]https://bugs.gentoo.org/show_bug.cgi?id=767814
- [Other]https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=512c0c75276949f13b6373b5c04f7065af750b08
- [Vendor advisory]https://gnupg.org
- [Vendor advisory]https://lists.gnupg.org/pipermail/gnupg-announce/2021q1/000455.html
- [Patch]https://lists.gnupg.org/pipermail/gnupg-announce/2021q1/000456.html
- [Other]https://www.oracle.com//security-alerts/cpujul2021.html
Related CVEs
Same vendor
- CVE-2026-35273 — Vulnerability in the PeopleSoft Enterprise PeopleTools product of Oracle PeopleSoft (component: Updates Environment Management) (9.8 CRITICAL)
- CVE-2026-46843 — Vulnerability in Oracle REST Data Services (component: Core) (5.3 MEDIUM)
- CVE-2026-46842 — Vulnerability in Oracle REST Data Services (component: Core) (5.3 MEDIUM)
- CVE-2026-46841 — Vulnerability in Oracle REST Data Services (component: General) (5.3 MEDIUM)
- CVE-2026-46840 — Vulnerability in Oracle REST Data Services (component: Backend-as-a-Service) (10.0 CRITICAL)
Same CWE
- CVE-2026-47750 — stable-diffusion.cpp is a pure C/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inf... (7.8 HIGH)
- CVE-2026-47747 — stable-diffusion.cpp is a pure C/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inf... (7.8 HIGH)
- CVE-2026-47749 — stable-diffusion.cpp is a pure C/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inf... (7.8 HIGH)
- CVE-2026-12314 — Memory safety bug fixed in Thunderbird 152 (7.5 HIGH)
- CVE-2026-12310 — Memory safety bug fixed in Thunderbird 152 (7.5 HIGH)