CVE-2012-2417 dlitz pycrypto: Cryptographic Issues
dlitz pycrypto: no CVSS score yet. EPSS 2.4% estimated probability of exploitation activity in the next 30 days. Fixed in pycrypto 2.6.
On this page
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.
- EPSS
- 2.4% (unchanged from 2.4% a week ago; 2.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
- CWE
- CWE-310 Cryptographic Issues
- Published
- Modified
- NVD analysis
- Analyzed, since modified
- Record from
- the NVD, synced
Fix and patched versions
pycrypto(PyPI): fixed in 2.6- Debian: fixed package versions per release
- Patch: https://github.com/Legrandin/pycrypto/commit/9f912f13df99ad3421eff360d6a62d7dbec755c2
- Vendor advisory: http://secunia.com/advisories/49263
Ask an AI about this CVE
Show the prompt
Explain CVE-2012-2417 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2012-2417?via=ask-ai-copy and https://cve.bz/cve/CVE-2012-2417?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2012-2417 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| dlitz:pycrypto | through 2.5 |
| dlitz:pycrypto | 1.0.0 |
| dlitz:pycrypto | 1.0.1 |
| dlitz:pycrypto | 1.0.2 |
| dlitz:pycrypto | 1.1:alpha2 |
| dlitz:pycrypto | 1.9:alpha1 |
| dlitz:pycrypto | 1.9:alpha2 |
| dlitz:pycrypto | 1.9:alpha3 |
| dlitz:pycrypto | 1.9:alpha4 |
| dlitz:pycrypto | 1.9:alpha5 |
| dlitz:pycrypto | 1.9:alpha6 |
| dlitz:pycrypto | 2.0 |
| dlitz:pycrypto | 2.0.1 |
| dlitz:pycrypto | 2.1.0 |
| dlitz:pycrypto | 2.1.0:alpha1 |
| dlitz:pycrypto | 2.1.0:alpha2 |
| dlitz:pycrypto | 2.1.0:beta1 |
| dlitz:pycrypto | 2.2 |
| dlitz:pycrypto | 2.3 |
| dlitz:pycrypto | 2.4 |
| dlitz:pycrypto | 2.4.1 |
Packages (OSV)
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-v367-p58w-98h5 | PyPI | pycrypto | <2.6 | 2.6 |
| PYSEC-2012-16 | PyPI | pycrypto | <2.6 | 2.6 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 6.0 | python-crypto | 2.1.0-2+squeeze1 | DSA-2502-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.
Red Hat
Red Hat rates this Moderate.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | python-crypto | Will not fix |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2012-2417.
References
- https://github.com/Legrandin/pycrypto/commit/9f912f13df99ad3421eff360d6a62d7dbec755c2
- http://secunia.com/advisories/49263
- http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081713.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081759.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081789.html
- http://www.debian.org/security/2012/dsa-2502
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:117
- http://www.openwall.com/lists/oss-security/2012/05/25/1
- http://www.osvdb.org/82279
- http://www.securityfocus.com/bid/53687
- https://bugs.launchpad.net/pycrypto/+bug/985164
- https://exchange.xforce.ibmcloud.com/vulnerabilities/75871
- https://github.com/dlitz/pycrypto/blob/373ea760f21701b162e8c4912a66928ee30d401a/ChangeLog
- https://hermes.opensuse.org/messages/15083589