{"id":"CVE-2012-2417","aliases":["DEBIAN-CVE-2012-2417","DSA-2502-1","EUVD-2012-0026","GHSA-v367-p58w-98h5","PYSEC-2012-16","openSUSE-SU-2024:10346-1"],"status":"published","title":"PyCrypto makes Use of Insufficiently Random Values","description":"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.","severity":{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02357,"percentile":0.8386,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-310"],"published":"2012-06-17T01:00:00Z","modified":"2026-06-16T23:41:31Z","fixes":[{"ecosystem":"PyPI","package":"pycrypto","fixed_in":["2.6"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:6.0","package":"python-crypto","fixed_in":["2.1.0-2+squeeze1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"pycrypto","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6"}]}]},{"source":"osv","ecosystem":"Debian:6.0","package":"python-crypto","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-2+squeeze1"}]}],"versions":["2.1.0-2"]},{"source":"osv","ecosystem":"PyPI","package":"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"]},{"source":"osv","ecosystem":"PyPI","package":"pycrypto","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"9f912f13df99ad3421eff360d6a62d7dbec755c2"}]},{"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","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"]}],"products":[{"vendor":"dlitz","product":"pycrypto"}],"references":[{"url":"http://www.debian.org/security/2012/dsa-2502","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","web","advisory"]},{"url":"http://www.osvdb.org/82279","tags":["vdb-entry","x_refsource_OSVDB","x_transferred","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081789.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://github.com/Legrandin/pycrypto/commit/9f912f13df99ad3421eff360d6a62d7dbec755c2","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","web","fix"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2012:117","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","web","advisory"]},{"url":"http://www.securityfocus.com/bid/53687","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://bugs.launchpad.net/pycrypto/+bug/985164","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081713.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://secunia.com/advisories/49263","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081759.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2012/05/25/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://hermes.opensuse.org/messages/15083589","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/75871","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"https://github.com/dlitz/pycrypto/blob/373ea760f21701b162e8c4912a66928ee30d401a/ChangeLog","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-2417","tags":["advisory"]},{"url":"https://web.archive.org/web/20140724111917/http://secunia.com/advisories/49263","tags":["web"]},{"url":"https://web.archive.org/web/20200228184120/http://www.securityfocus.com/bid/53687","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pycrypto/PYSEC-2012-16.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-v367-p58w-98h5","tags":["advisory"]},{"url":"https://github.com/Legrandin/pycrypto","tags":["package"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2012-2417","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2013-1445","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2012-2417","description":"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.","status":"published","published":"2012-06-17T01:00:00Z","modified":"2024-08-06T19:34:25.43Z","updated_at":"2026-11-02T14:34:49.937255Z"}],"euvd":[{"id":"EUVD-2012-0026","description":"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.","status":"published","published":"2012-06-17T01:00:00Z","modified":"2024-08-06T19:34:25Z","updated_at":"2026-11-03T01:56:14.434498Z"}],"ghsa":[{"id":"GHSA-v367-p58w-98h5","title":"PyCrypto makes Use of Insufficiently Random Values","description":"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.","status":"published","published":"2022-05-17T01:46:08Z","modified":"2024-10-21T20:04:19Z","cvss":[{"version":"4.0","score":6.9,"vector":"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","level":"medium"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T14:38:12.325695Z"}],"nvd":[{"id":"CVE-2012-2417","description":"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.","status":"published","published":"2012-06-17T03:41:40.763Z","modified":"2026-06-16T23:41:31.827Z","cvss":[{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-310"],"updated_at":"2026-11-02T14:02:14.336529Z"}],"osv":[{"id":"GHSA-v367-p58w-98h5","title":"PyCrypto makes Use of Insufficiently Random Values","description":"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.","status":"published","published":"2022-05-17T01:46:08Z","modified":"2024-12-01T05:48:25.26502Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"},{"version":"4.0","score":6.9,"vector":"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","level":"medium"}],"updated_at":"2026-11-02T15:46:56.639206Z"},{"id":"DSA-2502-1","title":"python-crypto - programming error","status":"published","published":"2012-06-24T00:00:00Z","modified":"2026-03-09T01:23:36.74512Z","updated_at":"2026-11-02T15:46:15.489951Z"},{"id":"openSUSE-SU-2024:10346-1","title":"python-pycrypto-2.6.1-4.8 on GA media","description":"These are all security issues fixed in the python-pycrypto-2.6.1-4.8 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:09:05.349131Z","updated_at":"2026-11-02T16:58:34.487567Z"},{"id":"PYSEC-2012-16","description":"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.","status":"published","published":"2012-06-17T03:41:00Z","modified":"2026-06-10T17:02:31.63678249Z","updated_at":"2026-11-02T15:52:51.254177Z"}]}}
