Live threats

All CVEs / Dlitz

CVE-2012-2417Dlitz Pycrypto

Medium 4.3 No auth needed

Priority
41
CVSS 2.0
4.3
EPSS
2.4%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Jun 17, 2012
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-310
Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pycrypto.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pycrypto < 2.6 2.6 pip install "pycrypto>=2.6"
PyPI pycrypto < 2.6 2.6 pip install "pycrypto>=2.6"

Per OSV / GitHub Advisories (GHSA-v367-p58w-98h5, PYSEC-2012-16). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
dlitzpycrypto≤ 2.5
dlitzpycrypto1.0.0
dlitzpycrypto1.0.1
dlitzpycrypto1.0.2
dlitzpycrypto1.1
dlitzpycrypto1.9
dlitzpycrypto1.9
dlitzpycrypto1.9
dlitzpycrypto1.9
dlitzpycrypto1.9
dlitzpycrypto1.9
dlitzpycrypto2.0
dlitzpycrypto2.0.1
dlitzpycrypto2.1.0
dlitzpycrypto2.1.0
dlitzpycrypto2.1.0
dlitzpycrypto2.1.0
dlitzpycrypto2.2
dlitzpycrypto2.3
dlitzpycrypto2.4
dlitzpycrypto2.4.1

Official sources

References

Links published by the sources. Open them with care.