{"id":"GHSA-6528-wvf6-f6qg","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.","aliases":["CVE-2018-6594","PYSEC-2018-97"],"modified":"2024-10-18T22:22:56.958480Z","published":"2018-07-12T20:29:26Z","database_specific":{"github_reviewed_at":"2020-06-16T21:18:02Z","nvd_published_at":null,"cwe_ids":["CWE-326"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-6594"},{"type":"WEB","url":"https://github.com/dlitz/pycrypto/issues/253"},{"type":"WEB","url":"https://github.com/TElgamal/attack-on-pycrypto-elgamal"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-6528-wvf6-f6qg"},{"type":"PACKAGE","url":"https://github.com/dlitz/pycrypto"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pycrypto/PYSEC-2018-97.yaml"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2018/02/msg00018.html"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202007-62"},{"type":"WEB","url":"https://usn.ubuntu.com/3616-1"},{"type":"WEB","url":"https://usn.ubuntu.com/3616-2"}],"affected":[{"package":{"name":"pycrypto","ecosystem":"PyPI","purl":"pkg:pypi/pycrypto"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.6.1"}]}],"versions":["1.9a2","1.9a5","1.9a6","2.0","2.0.1","2.1.0","2.2","2.3","2.4","2.4.1","2.5","2.6","2.6.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-6528-wvf6-f6qg/GHSA-6528-wvf6-f6qg.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"},{"type":"CVSS_V4","score":"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"}]}