Insecure Randomness Affecting pycrypto package, versions [,2.6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.44% (76th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insecure Randomness vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PYCRYPTO-40095
  • published1 Aug 2017
  • disclosed19 Apr 2012
  • creditUnknown

Introduced: 19 Apr 2012

CVE-2012-2417  (opens in a new tab)
CWE-310  (opens in a new tab)

Overview

pycrypto is a Cryptographic module for Python.

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.

References

CVSS Scores

version 3.1