CVE-2012-2417Dlitz Pycrypto
Medium 4.3 No auth needed
Follow: this CVE · Dlitz · Dlitz Pycrypto We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Pycrypto.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| dlitz | pycrypto | ≤ 2.5 |
| dlitz | pycrypto | 1.0.0 |
| dlitz | pycrypto | 1.0.1 |
| dlitz | pycrypto | 1.0.2 |
| dlitz | pycrypto | 1.1 |
| dlitz | pycrypto | 1.9 |
| dlitz | pycrypto | 1.9 |
| dlitz | pycrypto | 1.9 |
| dlitz | pycrypto | 1.9 |
| dlitz | pycrypto | 1.9 |
| dlitz | pycrypto | 1.9 |
| dlitz | pycrypto | 2.0 |
| dlitz | pycrypto | 2.0.1 |
| dlitz | pycrypto | 2.1.0 |
| dlitz | pycrypto | 2.1.0 |
| dlitz | pycrypto | 2.1.0 |
| dlitz | pycrypto | 2.1.0 |
| dlitz | pycrypto | 2.2 |
| dlitz | pycrypto | 2.3 |
| dlitz | pycrypto | 2.4 |
| dlitz | pycrypto | 2.4.1 |
Official sources
References
Links published by the sources. Open them with care.