CVE-2018-6829
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | libgcrypt20 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | gnupg | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | libgcrypt20 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | libgcrypt20 | Not affected vulnerable_code_not_present | ||
| Debian 14 | gnupg1 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2018-6829 | |
| Debian 14 | libgcrypt20 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2018-6829 | |
| Debian 13 | gnupg1 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2018-6829 | |
| Debian 13 | libgcrypt20 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2018-6829 | |
| Debian 12 | gnupg1 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2018-6829 | |
| Debian 12 | libgcrypt20 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2018-6829 | |
| Red Hat Enterprise Linux 8 | libgcrypt | Not affected | ||
| Red Hat Enterprise Linux 8 | libgcrypt-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libgcrypt | Not affected | ||
| Red Hat Enterprise Linux 7 | libgcrypt-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | libgcrypt | Not affected | ||
| Red Hat Enterprise Linux 6 | libgcrypt-devel | Not affected | ||
| Red Hat Enterprise Linux 5 | libgcrypt | Not affected |
References
- https://github.com/weikengchen/attack-on-libgcrypt-elgamal/wiki
- https://lists.gnupg.org/pipermail/gcrypt-devel/2018-February/004394.html
- https://github.com/weikengchen/attack-on-libgcrypt-elgamal
- https://www.oracle.com/security-alerts/cpujan2020.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.