{"cve":"CVE-2018-6594","nvd":{"published":"2018-02-03T15:29:00.653","modified":"2026-06-17T02:02:04.427","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-326"],"references":["https://github.com/TElgamal/attack-on-pycrypto-elgamal","https://github.com/dlitz/pycrypto/issues/253","https://lists.debian.org/debian-lts-announce/2018/02/msg00018.html","https://security.gentoo.org/glsa/202007-62","https://usn.ubuntu.com/3616-1/"],"products":["canonical:ubuntu_linux","debian:debian_linux","dlitz:pycrypto"],"source":"nvd","synced_at":"2026-10-19T20:48:34.567387330+00:00"},"epss":{"cve":"CVE-2018-6594","score":0.02031,"percentile":0.81051,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6528-wvf6-f6qg","url":"https://osv.dev/vulnerability/GHSA-6528-wvf6-f6qg","summary":"Pycrypto generates weak key parameters","modified":"2024-10-18T22:22:56.958480Z","packages":[{"ecosystem":"PyPI","name":"pycrypto","purl":"pkg:pypi/pycrypto","ranges":["<=2.6.1"],"fixed":[]}]},{"id":"PYSEC-2018-97","url":"https://osv.dev/vulnerability/PYSEC-2018-97","summary":"","modified":"2023-11-08T04:00:21.756085Z","packages":[{"ecosystem":"PyPI","name":"pycrypto","purl":"pkg:pypi/pycrypto","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}