Vulnerabilities · 2021 · Gnupg
CVE-2021-40528
Gnupg Libgcrypt vulnerability
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.
Affected products
Libgcrypt. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gnupg Libgcrypt runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- eprint.iacr.org/2021/923 · Third Party Advisory
- ibm.github.io/system-security-research-updates/2021/07/20/insecurity-elgamal-pt1 · Third Party Advisory
- ibm.github.io/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2 · Exploit
- security.gentoo.org/glsa/202210-13 · Third Party Advisory
- git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=3462280f2e23e16adf3ed5176e
- nvd.nist.gov/vuln/detail/CVE-2021-40528
- cve.org/CVERecord?id=CVE-2021-40528
More vulnerabilities in Gnupg products
CVE-2026-24883CVE-2026-24882CVE-2025-68973CVE-2025-68972CVE-2025-30258CVE-2022-47629CVE-2022-34903CVE-2022-3515All 52
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.