CVE-2018-6594
HIGH 7.5CVSS 3.0Pycrypto generates weak key parameters
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.
- Published
- 3 Feb 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-326
- Also known as
- GHSA-6528-wvf6-f6qgPYSEC-2018-97
- Sources
- NVDJSONOSV GHSA-6528-wvf6-f6qgJSONOSV PYSEC-2018-97JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | dlitz | pycryptocpe:2.3:a:dlitz:pycrypto:*:*:*:*:*:*:*:* |
<= 2.6.1 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:* |
= 12.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* |
= 14.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* |
= 16.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* |
= 17.10 | |
| OSV | PyPI | pycrypto | <= 2.6.1 | |
| OSV | PyPI | pycrypto | all versions |
References
- https://github.com/TElgamal/attack-on-pycrypto-elgamal · Third Party Advisory, WEB
- https://github.com/dlitz/pycrypto/issues/253 · Exploit, Issue Tracking, Third Party Advisory, WEB, REPORT
- https://lists.debian.org/debian-lts-announce/2018/02/msg00018.html · Mailing List, Third Party Advisory, WEB
- https://security.gentoo.org/glsa/202007-62 · WEB, ADVISORY
- https://usn.ubuntu.com/3616-1/ · Third Party Advisory, WEB
- https://usn.ubuntu.com/3616-2/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-6594 · ADVISORY
- https://github.com/advisories/GHSA-6528-wvf6-f6qg · ADVISORY
- https://github.com/dlitz/pycrypto · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/pycrypto/PYSEC-2018-97.yaml · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 3 Feb 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Feb 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 12 Jul 2018)