CVE-2021-40528Gnupg Libgcrypt
Medium 5.9 No auth needed
Follow: this CVE · Gnupg · Gnupg Libgcrypt We alert you by email or Slack (account required).
- Priority
- 51
- CVSS 3.1
- 5.9
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Sep 6, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-327
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Libgcrypt.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gnupg | libgcrypt | < 1.9.4 |
Official sources
References
Links published by the sources. Open them with care.
- eprint.iacr.org Technical Description Third Party Advisory
- git.gnupg.org
- ibm.github.io Third Party Advisory
- ibm.github.io Exploit Third Party Advisory
- security.gentoo.org Third Party Advisory