CVE-2012-2417

medium
Published 2012-06-17 · Modified 2024-04-30
CVSS v3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v2
4.3
VIR risk
4.3

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.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://github.com/Legrandin/pycrypto/commit/9f912f13df99ad3421eff360d6a62d7dbec755c2

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — http://secunia.com/advisories/49263

Package impact

EcosystemPackageVulnerableFixed
python PyPIpycrypto<2.62.6
python PyPIpycrypto<9f912f13df99ad3421eff360d6a62d7dbec755c2||<2.69f912f13df99ad3421eff360d6a62d7dbec755c2

Application impact

VendorProductVersionsFixed
dlitzpycrypto{"endIncluding":"2.5"}
dlitzpycrypto1.0.0
dlitzpycrypto1.0.1
dlitzpycrypto1.0.2
dlitzpycrypto1.1
dlitzpycrypto1.9
dlitzpycrypto2.0
dlitzpycrypto2.0.1
dlitzpycrypto2.1.0
dlitzpycrypto2.2
dlitzpycrypto2.3
dlitzpycrypto2.4
dlitzpycrypto2.4.1

References

CWEs

CWE-310

Verify integrity in audit chain (admin only). AS-IS.