# CVE-2018-6594

- 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-03 · Modified: 2024-08-05
- Aliases: MGASA-2018-0171, GHSA-6528-wvf6-f6qg, PYSEC-2018-97, UBUNTU-CVE-2018-6594, USN-3616-1, DEBIAN-CVE-2018-6594
- Record: https://cvemate.com/vulnerability/CVE-2018-6594 · JSON: https://cvemate.com/vulnerability/CVE-2018-6594/json

## Description

```text
lib/Crypto/PublicKey/ElGamal.py in PyCrypto through 2.6.1 generates weak ElGamal key parameters, 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 PyCrypto'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: 2.071%, percentile 82.082%, 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

- canonical ubuntu\_linux: 12.04 \| 14.04 \| 16.04 \| 17.10
- debian pycryptodome (Debian): \< 3.4.11-1
- ubuntu pycryptodome (Ubuntu): \< 3.4.7-1ubuntu1
- ubuntu python-crypto (Ubuntu): \< 2.6.1-4ubuntu0.3 \| \< 2.6.1-6ubuntu0.16.04.3 \| \< 2.6.1-8ubuntu2
- debian debian\_linux: 7.0
- dlitz pycrypto: ≤ 2.6.1
- mageia python-pycrypto (Mageia): \< 2.6.1-6.2.mga5
- mageia python-pycrypto (Mageia): \< 2.6.1-9.1.mga6
- PyPI pycrypto (PyPI): ≤ 2.6.1 \| All versions (No fix recorded)

## References

- <https://github.com/TElgamal/attack-on-pycrypto-elgamal>
- <https://usn.ubuntu.com/3616-1/>
- <https://github.com/dlitz/pycrypto/issues/253>
- <https://lists.debian.org/debian-lts-announce/2018/02/msg00018.html>
- <https://usn.ubuntu.com/3616-2/>
- <https://security.gentoo.org/glsa/202007-62>
- <https://advisories.mageia.org/MGASA-2018-0171.html>
- <https://bugs.mageia.org/show_bug.cgi?id=22693>
- <https://github.com/Legrandin/pycryptodome/issues/90>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-6594>
- <https://github.com/advisories/GHSA-6528-wvf6-f6qg>
- <https://github.com/dlitz/pycrypto>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pycrypto/PYSEC-2018-97.yaml>
- <https://usn.ubuntu.com/3616-1>
- <https://usn.ubuntu.com/3616-2>
- <https://ubuntu.com/security/CVE-2018-6594>
- <https://ubuntu.com/security/notices/USN-3616-1>
- <https://ubuntu.com/security/notices/USN-3616-2>
- <https://www.cve.org/CVERecord?id=CVE-2018-6594>
- <https://security-tracker.debian.org/tracker/CVE-2018-6594>

---

Data as of 2026-12-05T09:57:04.551Z. 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
