CVE-2012-2417: Dlitz Pycrypto

Medium severity, CVSS 4.3. EPSS: 2.4% chance of exploitation in the next 30 days.

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.

Affected products

  • Dlitz Pycrypto: up to and including 2.5; version 1.0.0 only; version 1.0.1 only; version 1.0.2 only; version 1.1 only; version 1.9 only; …

Published 2012-06-17. Last modified 2026-06-16.