CVE-2021-3345: _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.
CVE-2021-3345 is a vulnerability in _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., rated Important by Microsoft, with a CVSS 3.1 base score of 7.8 (High). An attacker can exploit it by an attacker with local access, with low privileges and without user interaction. Microsoft has not reported exploitation in the wild. The EPSS model estimates a 1.06% probability of exploitation activity in the next 30 days, higher than 65% of all scored vulnerabilities. Microsoft published it on 6 August 2026, outside Patch Tuesday. It affects 1 product in 1 product family (Other).
Key facts
- CVE ID
- CVE-2021-3345
- Severity
- High CVSS 7.8
- Microsoft severity
- Important
- Exploited in the wild
- No
- Publicly disclosed
- No
- Weakness
- CWE-787
- EPSS
- 1.06% (percentile 65%)
- CISA KEV
- Not listed
- Released
- Last updated
- Patch Tuesday
- January 2021 Patch Tuesday
- Product families
- Other
CVSS score and vector
Microsoft scores CVE-2021-3345 at 7.8 (temporal 7.8) using CVSS 3.1. Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
| Metric | Value |
|---|---|
| Attack vector | Local |
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality impact | High |
| Integrity impact | High |
| Availability impact | High |
Affected products (1)
Other
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| 19663-17084 |
Exploitation and detection
Detection and weaponization
Weaponization maturity: Exploit.
Proof-of-concept repositories (2)
- MLGRadish/CVE-2021-3345 · 9 stars
- SpiralBL0CK/CVE-2021-3345 · 3 stars
NIST NVD data
- NVD status
- Modified
- NVD CVSS
- 7.8 (HIGH)
- NVD weakness
- CWE-787
- Published to NVD
- NVD last modified
Affected configurations (CPE)
| Product | Vulnerable versions |
|---|---|
| libgcrypt 1.9.0 | all listed versions |
| communications billing and revenue management 12.0.0.3.0 | all listed versions |
References
- https://bugs.gentoo.org/show_bug.cgi?id=767814 (Issue Tracking, Vendor Advisory)
- https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=512c0c75276949f13b6373b5c04f7065af750b08
- https://gnupg.org (Vendor Advisory)
- 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://www.oracle.com//security-alerts/cpujul2021.html (Third Party Advisory)
- https://bugs.gentoo.org/show_bug.cgi?id=767814 (Issue Tracking, Vendor Advisory)
- https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=512c0c75276949f13b6373b5c04f7065af750b08
- https://gnupg.org (Vendor Advisory)
- 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://www.oracle.com//security-alerts/cpujul2021.html (Third Party Advisory)
Revision history
| Version | Date | Description |
|---|---|---|
| 1.0 | Information published. |