{"id":"CVE-2018-6594","details":"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.","aliases":["GHSA-6528-wvf6-f6qg","PYSEC-2018-97"],"modified":"2026-08-27T03:48:07.011795620Z","published":"2018-02-03T15:29:00.653Z","database_specific":{"unresolved_ranges":[{"cpes":["cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"12.04"},{"last_affected":"12.04"},{"introduced":"14.04"},{"last_affected":"14.04"},{"introduced":"16.04"},{"last_affected":"16.04"},{"introduced":"17.10"},{"last_affected":"17.10"}],"source":"CPE_STRING","vendor_product":"canonical:ubuntu_linux"},{"cpes":["cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.0"},{"last_affected":"7.0"}],"source":"CPE_STRING","vendor_product":"debian:debian_linux"}]},"references":[{"type":"ADVISORY","url":"https://github.com/TElgamal/attack-on-pycrypto-elgamal"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/02/msg00018.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202007-62"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3616-1/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3616-2/"},{"type":"REPORT","url":"https://github.com/dlitz/pycrypto/issues/253"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pycrypto/pycrypto","events":[{"introduced":"0"},{"last_affected":"7fd528d03b5eae58eef6fd219af5d9ac9c83fa50"}],"database_specific":{"cpe":"cpe:2.3:a:dlitz:pycrypto:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"2.6.1"}],"source":"CPE_RANGE"}}],"versions":["v2.6.1","v2.6","v2.5","v2.4.1","v2.4","v2.3","v2.2","v2.1.0","v2.1.0b1","v2.1.0alpha2","v2.1.0alpha1","v1.9a5","v1.9a4","v1.9a3","v1.9a2","v1.9a1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-6594.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}