Moderate severityNVD Advisory· Published Jun 17, 2012· Updated Jun 16, 2026
CVE-2012-2417
CVE-2012-2417
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
PyCryptoPyPI | < 2.6 | 2.6 |
Affected products
22cpe:2.3:a:dlitz:pycrypto:*:*:*:*:*:*:*:*+ 20 more
- cpe:2.3:a:dlitz:pycrypto:*:*:*:*:*:*:*:*range: <=2.5
- cpe:2.3:a:dlitz:pycrypto:1.0.0:*:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:1.0.1:*:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:1.0.2:*:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:1.1:alpha2:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:1.9:alpha1:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:1.9:alpha2:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:1.9:alpha3:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:1.9:alpha4:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:1.9:alpha5:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:1.9:alpha6:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:2.0:*:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:2.0.1:*:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:2.1.0:*:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:2.1.0:alpha1:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:2.1.0:alpha2:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:2.1.0:beta1:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:2.2:*:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:2.3:*:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:2.4:*:*:*:*:*:*:*
- cpe:2.3:a:dlitz:pycrypto:2.4.1:*:*:*:*:*:*:*
Patches
Vulnerability mechanics
References
19- github.com/Legrandin/pycrypto/commit/9f912f13df99ad3421eff360d6a62d7dbec755c2nvdExploitPatchWEB
- secunia.com/advisories/49263nvdVendor Advisory
- github.com/advisories/GHSA-v367-p58w-98h5ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2012-2417ghsaADVISORY
- lists.fedoraproject.org/pipermail/package-announce/2012-June/081713.htmlnvdWEB
- lists.fedoraproject.org/pipermail/package-announce/2012-June/081759.htmlnvdWEB
- lists.fedoraproject.org/pipermail/package-announce/2012-June/081789.htmlnvdWEB
- www.debian.org/security/2012/dsa-2502nvdWEB
- www.mandriva.com/security/advisoriesnvdWEB
- www.openwall.com/lists/oss-security/2012/05/25/1nvdWEB
- bugs.launchpad.net/pycrypto/+bug/985164nvdWEB
- exchange.xforce.ibmcloud.com/vulnerabilities/75871nvdWEB
- github.com/dlitz/pycrypto/blob/373ea760f21701b162e8c4912a66928ee30d401a/ChangeLognvdWEB
- github.com/pypa/advisory-database/tree/main/vulns/pycrypto/PYSEC-2012-16.yamlghsaWEB
- hermes.opensuse.org/messages/15083589nvdWEB
- web.archive.org/web/20140724111917/http://secunia.com/advisories/49263ghsaWEB
- web.archive.org/web/20200228184120/http://www.securityfocus.com/bid/53687ghsaWEB
- www.osvdb.org/82279nvd
- www.securityfocus.com/bid/53687nvd
News mentions
0No linked articles in our index yet.