Vulnerabilities · 2018 · Gnupg
CVE-2018-6829
Gnupg Libgcrypt vulnerability
cipher/elgamal.c in Libgcrypt through 1.8.2, when used to encrypt messages directly, improperly encodes plaintexts, which allows attackers to obtain sensitive information by reading ciphertext data (i.e., it does not have semantic security in face of a ciphertext-only attack). The Decisional Diffie-Hellman (DDH) assumption does not hold for Libgcrypt's ElGamal implementation.
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
- github.com/weikengchen/attack-on-libgcrypt-elgamal · Third Party Advisory
- github.com/weikengchen/attack-on-libgcrypt-elgamal/wiki · Exploit
- lists.gnupg.org/pipermail/gcrypt-devel/2018-February/004394.html · Third Party Advisory
- www.oracle.com/security-alerts/cpujan2020.html
- nvd.nist.gov/vuln/detail/CVE-2018-6829
- cve.org/CVERecord?id=CVE-2018-6829
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.