{"id":"GHSA-v367-p58w-98h5","summary":"PyCrypto makes Use of Insufficiently Random Values","details":"PyCrypto before 2.6 does not produce appropriate prime numbers when using an ElGamal scheme to generate a key, which reduces the signature space or public key space and makes it easier for attackers to conduct brute force attacks to obtain the private key.","aliases":["CVE-2012-2417","PYSEC-2012-16"],"modified":"2024-12-01T05:48:25.265020Z","published":"2022-05-17T01:46:08Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-04-30T14:35:18Z","nvd_published_at":"2012-06-17T03:41:00Z","cwe_ids":[],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-2417"},{"type":"WEB","url":"https://github.com/Legrandin/pycrypto/commit/9f912f13df99ad3421eff360d6a62d7dbec755c2"},{"type":"WEB","url":"https://bugs.launchpad.net/pycrypto/+bug/985164"},{"type":"WEB","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/75871"},{"type":"PACKAGE","url":"https://github.com/Legrandin/pycrypto"},{"type":"WEB","url":"https://github.com/dlitz/pycrypto/blob/373ea760f21701b162e8c4912a66928ee30d401a/ChangeLog"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pycrypto/PYSEC-2012-16.yaml"},{"type":"WEB","url":"https://hermes.opensuse.org/messages/15083589"},{"type":"WEB","url":"https://web.archive.org/web/20140724111917/http://secunia.com/advisories/49263"},{"type":"WEB","url":"https://web.archive.org/web/20200228184120/http://www.securityfocus.com/bid/53687"},{"type":"WEB","url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081713.html"},{"type":"WEB","url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081759.html"},{"type":"WEB","url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081789.html"},{"type":"WEB","url":"http://www.debian.org/security/2012/dsa-2502"},{"type":"WEB","url":"http://www.mandriva.com/security/advisories?name=MDVSA-2012:117"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2012/05/25/1"}],"affected":[{"package":{"name":"pycrypto","ecosystem":"PyPI","purl":"pkg:pypi/pycrypto"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6"}]}],"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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-v367-p58w-98h5/GHSA-v367-p58w-98h5.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"}]}