# CVE-2018-6829

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2018-02-07 · Modified: 2024-08-05
- Aliases: DEBIAN-CVE-2018-6829
- Record: https://cvemate.com/vulnerability/CVE-2018-6829 · JSON: https://cvemate.com/vulnerability/CVE-2018-6829/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.777%, percentile 78.982%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian gnupg1 (Debian): All versions (No fix recorded)
- debian libgcrypt20 (Debian): All versions (No fix recorded)
- gnupg libgcrypt: ≤ 1.8.2

## 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>
- <https://security-tracker.debian.org/tracker/CVE-2018-6829>

---

Data as of 2026-12-05T04:50:02.040Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
