
CVE catalog
CVE-2021-40528
libgcrypt20: CVE-2021-40528
- Severity
- Medium · CVSS 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.42% · Oct 25, 2026
The ElGamal implementation in Libgcrypt before 1.9.4 allows plaintext recovery because, during interaction between two cryptographic libraries, a certain dangerous combination of the prime defined by the receiver's public key, the generator defined by the receiver's public key, and the sender's ephemeral exponents can lead to a cross-configuration attack against OpenPGP.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libgcrypt20 | sid | 1.12.4-2 | fixed |
| Debian | libgcrypt20 | forky | 1.12.4-2 | fixed |
| Debian | libgcrypt20 | trixie | 1.11.0-7+deb13u1 | fixed |
| Debian | libgcrypt20 | trixie-security | 1.11.0-7+deb13u1 | fixed |
| Debian | libgcrypt20 | bookworm | 1.10.1-3+deb12u1 | fixed |
| Debian | libgcrypt20 | bookworm-security | 1.10.1-3+deb12u1 | fixed |
| Alpine | libgcrypt | 3.11 | 1.8.8-r1 | fixed |
| Alpine | libgcrypt | 3.12 | 1.8.8-r1 | fixed |
| Alpine | libgcrypt | 3.13 | 1.8.8-r1 | fixed |
| Ubuntu | libgcrypt20 | pro | 1.8.5-5ubuntu1.fips.1.1 | fixed |
| Ubuntu | libgcrypt20 | 18.04 | 1.7.8-2ubuntu1 | vulnerable |
| Ubuntu | libgcrypt20 | 18.04 | 1.7.9-1 | vulnerable |
| Ubuntu | libgcrypt20 | 18.04 | 1.8.1-4 | vulnerable |
| Ubuntu | libgcrypt20 | 18.04 | 1.8.1-4ubuntu1 | vulnerable |
| Ubuntu | libgcrypt20 | 18.04 | 1.8.1-4ubuntu1.1 | vulnerable |
| Ubuntu | libgcrypt20 | 18.04 | 1.8.1-4ubuntu1.2 | vulnerable |
| Ubuntu | libgcrypt20 | 18.04 | 1.8.1-4ubuntu1.3 | fixed |
| Ubuntu | libgcrypt20 | 20.04 | 1.8.4-5ubuntu2 | vulnerable |
| Ubuntu | libgcrypt20 | 20.04 | 1.8.5-3ubuntu1 | vulnerable |
| Ubuntu | libgcrypt20 | 20.04 | 1.8.5-5ubuntu1 | vulnerable |
| Ubuntu | libgcrypt20 | 20.04 | 1.8.5-5ubuntu1.1 | fixed |
| Ubuntu | libgcrypt20 | 22.04 | 1.8.7-5ubuntu2 | fixed |
| Opensuse | libgcrypt | tumbleweed | 1.10.1-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libgcrypt20 | source | sid | 1.8.7-6 | not yet assigned | Not reported | Not reported |
| Debian | libgcrypt20 | source | forky | 1.8.7-6 | not yet assigned | Not reported | Not reported |
| Debian | libgcrypt20 | source | trixie | 1.8.7-6 | not yet assigned | Not reported | Not reported |
| Debian | libgcrypt20 | source | bookworm | 1.8.7-6 | not yet assigned | Not reported | Not reported |
| Alpine | libgcrypt | apk | 3.11 | 1.8.8-r1 | Not reported | ALPINE-CVE-2021-40528 | Not reported |
| Alpine | libgcrypt | apk | 3.12 | 1.8.8-r1 | Not reported | ALPINE-CVE-2021-40528 | Not reported |
| Alpine | libgcrypt | apk | 3.13 | 1.8.8-r1 | Not reported | ALPINE-CVE-2021-40528 | Not reported |
| Ubuntu | libgcrypt20 | deb | pro | 1.8.5-5ubuntu1.fips.1.1 | Not reported | UBUNTU-CVE-2021-40528 | Not reported |
| Ubuntu | libgcrypt20 | deb | 18.04 | 1.8.1-4ubuntu1.3 | Not reported | UBUNTU-CVE-2021-40528 | Not reported |
| Ubuntu | libgcrypt20 | deb | 20.04 | 1.8.5-5ubuntu1.1 | Not reported | UBUNTU-CVE-2021-40528 | Not reported |
| Ubuntu | libgcrypt20 | deb | 22.04 | 1.8.7-5ubuntu2 | Not reported | UBUNTU-CVE-2021-40528 | Not reported |
| Opensuse | libgcrypt | rpm | tumbleweed | 1.10.1-1.1 | Not reported | OPENSUSE-SU-2024:12540-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libgcrypt20]Unknown
Details (4)
1.10.1-3+deb12u1· amd64 · bookwormFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
1.10.1-3+deb12u1· arm64 · bookwormFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
1.10.1-3+deb12u1· amd64 · bookworm-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
1.10.1-3+deb12u1· arm64 · bookworm-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
- [libgcrypt20-dev]Unknown
Source package: [libgcrypt20]
Details (4)
1.10.1-3+deb12u1· amd64 · bookwormFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
1.10.1-3+deb12u1· arm64 · bookwormFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
1.10.1-3+deb12u1· amd64 · bookworm-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
1.10.1-3+deb12u1· arm64 · bookworm-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
- [libgcrypt20-doc]Unknown
Source package: [libgcrypt20]
Details (4)
1.10.1-3+deb12u1· all · bookwormFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
1.10.1-3+deb12u1· all · bookwormFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
1.10.1-3+deb12u1· all · bookworm-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
1.10.1-3+deb12u1· all · bookworm-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
- [libgcrypt-mingw-w64-dev]Unknown
Source package: [libgcrypt20]
Details (4)
1.10.1-3+deb12u1· all · bookwormFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
1.10.1-3+deb12u1· all · bookwormFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
1.10.1-3+deb12u1· all · bookworm-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
1.10.1-3+deb12u1· all · bookworm-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12
[Debian 13 (Trixie)]
- [libgcrypt20]Unknown
Details (4)
1.11.0-7+deb13u1· amd64 · trixieFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· arm64 · trixieFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· amd64 · trixie-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· arm64 · trixie-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
- [libgcrypt20-dev]Unknown
Source package: [libgcrypt20]
Details (4)
1.11.0-7+deb13u1· amd64 · trixieFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· arm64 · trixieFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· amd64 · trixie-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· arm64 · trixie-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
- [libgcrypt20-doc]Unknown
Source package: [libgcrypt20]
Details (4)
1.11.0-7+deb13u1· all · trixieFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· all · trixieFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· all · trixie-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· all · trixie-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
- [libgcrypt-bin]Unknown
Source package: [libgcrypt20]
Details (4)
1.11.0-7+deb13u1· amd64 · trixieFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· arm64 · trixieFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· amd64 · trixie-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· arm64 · trixie-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
- [libgcrypt-mingw-w64-dev]Unknown
Source package: [libgcrypt20]
Details (4)
1.11.0-7+deb13u1· all · trixieFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· all · trixieFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· all · trixie-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
1.11.0-7+deb13u1· all · trixie-securityFixed · Fixed:
1.8.7-6dsa · libgcrypt20 · debian · 13
[openSUSE Tumbleweed]
- [libgcrypt20]Unknown
Source package: [libgcrypt]
Details (1)
1.12.2-1.4· x86_64 · tumbleweedUnknown · Fixed:
1.10.1-1.1Version impact unknown
dsa · libgcrypt · opensuse · tumbleweed
- [libgcrypt20-32bit]Unknown
Source package: [libgcrypt]
Details (1)
1.12.2-1.4· x86_64 · tumbleweedUnknown · Fixed:
1.10.1-1.1Version impact unknown
dsa · libgcrypt · opensuse · tumbleweed
- [libgcrypt20-x86-64-v3]Unknown
Source package: [libgcrypt]
Details (1)
1.12.2-1.4· x86_64 · tumbleweedUnknown · Fixed:
1.10.1-1.1Version impact unknown
dsa · libgcrypt · opensuse · tumbleweed
- [libgcrypt-devel]Unknown
Source package: [libgcrypt]
Details (1)
1.12.2-1.4· x86_64 · tumbleweedUnknown · Fixed:
1.10.1-1.1Version impact unknown
dsa · libgcrypt · opensuse · tumbleweed
- [libgcrypt-devel-32bit]Unknown
Source package: [libgcrypt]
Details (1)
1.12.2-1.4· x86_64 · tumbleweedUnknown · Fixed:
1.10.1-1.1Version impact unknown
dsa · libgcrypt · opensuse · tumbleweed
- [libgcrypt-devel-x86-64-v3]Unknown
Source package: [libgcrypt]
Details (1)
1.12.2-1.4· x86_64 · tumbleweedUnknown · Fixed:
1.10.1-1.1Version impact unknown
dsa · libgcrypt · opensuse · tumbleweed
Observed:
References
- [https://access.redhat.com/errata/RHSA-2022:5311]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2022_5311.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2021-40528]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-40528]
- [https://osv.dev/vulnerability/DLA-2691-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-40528]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:12540-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-40528]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1812.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]