# CVE-2012-2417

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2012-06-17 · Modified: 2024-08-06
- Aliases: GHSA-v367-p58w-98h5, PYSEC-2012-16, DSA-2502-1
- Record: https://cvemate.com/vulnerability/CVE-2012-2417 · JSON: https://cvemate.com/vulnerability/CVE-2012-2417/json

## Description

```text
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.
```

## Signals

- CVSS: 4.3 medium (v2.0, NVD) AV:N/AC:M/Au:N/C:N/I:P/A:N
- EPSS: 2.357%, percentile 84.293%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian python-crypto (Debian): \< 2.1.0-2+squeeze1
- dlitz pycrypto: ≤ 2.5 \| 1.0.0 \| 1.0.1 \| 1.0.2 \| 1.1:alpha2 \| 1.9:alpha1 \| 1.9:alpha2 \| 1.9:alpha3 \| 1.9:alpha4 \| 1.9:alpha5 \| 1.9:alpha6 \| 2.0 \| 2.0.1 \| 2.1.0 \| 2.1.0:alpha1 \| 2.1.0:alpha2 \| 2.1.0:beta1 \| 2.2 \| 2.3 \| 2.4 \| 2.4.1
- PyPI pycrypto (PyPI): \< 9f912f13df99ad3421eff360d6a62d7dbec755c2 \| \< 2.6

## References

- <http://www.debian.org/security/2012/dsa-2502>
- <http://www.osvdb.org/82279>
- <http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081789.html>
- <https://github.com/Legrandin/pycrypto/commit/9f912f13df99ad3421eff360d6a62d7dbec755c2>
- <http://www.mandriva.com/security/advisories?name=MDVSA-2012:117>
- <http://www.securityfocus.com/bid/53687>
- <https://bugs.launchpad.net/pycrypto/+bug/985164>
- <http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081713.html>
- <http://secunia.com/advisories/49263>
- <http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081759.html>
- <http://www.openwall.com/lists/oss-security/2012/05/25/1>
- <https://hermes.opensuse.org/messages/15083589>
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/75871>
- <https://github.com/dlitz/pycrypto/blob/373ea760f21701b162e8c4912a66928ee30d401a/ChangeLog>
- <https://nvd.nist.gov/vuln/detail/CVE-2012-2417>
- <https://github.com/Legrandin/pycrypto>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pycrypto/PYSEC-2012-16.yaml>
- <https://web.archive.org/web/20140724111917/http://secunia.com/advisories/49263>
- <https://web.archive.org/web/20200228184120/http://www.securityfocus.com/bid/53687>
- <https://github.com/advisories/GHSA-v367-p58w-98h5>

---

Data as of 2026-12-05T09:57:04.471Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
