{"id":"CVE-2018-6594","aliases":["GHSA-6528-wvf6-f6qg","PYSEC-2018-97"],"url":"https://o3.security/vulnerability/CVE-2018-6594","summary":"Pycrypto generates weak key parameters","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.","published":"2018-02-03T15:29:00.653Z","modified":"2026-08-27T03:48:07.011795620Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"PyPI","name":"pycrypto","fixedVersion":null}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-27T03:48:07.011795620Z"}}