CVE-2012-2417 json
PyCrypto makes Use of Insufficiently Random Values
published 2012-06-17 14 y ago modified 2026-06-16 4 mo ago also GHSA-v367-p58w-98h5 , PYSEC-2012-16 , EUVD-2012-0026
- cvss
- 5.3
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.4%
- EPSS 2.4% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2012-2417 updated cvss 4.0
python-crypto: Insecure ElGamal key generation
-
Red Hat Enterprise Linux 6 python-cryptoaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.36% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/Legrandin/pycrypto/commit/9f912f13df99ad3421eff360d6a62d7dbec755c2 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pycrypto | <2.6 |
2.6 |
Classification
- Weakness
-
- CWE-310 Cryptographic Issues
References
-
github.com
/Legrandin/pycrypto/commit/9f912f13df99ad3421eff360d6a62d7dbec755c2
web, exploit, patch
-
debian.org
/security/2012/dsa-2502
vendor-advisory, web, advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2012-June/081789.html
vendor-advisory, web
-
mandriva.com
/security/advisories?name=MDVSA-2012:117
vendor-advisory, web, advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2012-June/081713.html
vendor-advisory, web
-
lists.fedoraproject.org
/pipermail/package-announce/2012-June/081759.html
vendor-advisory, web
-
hermes.opensuse.org
/messages/15083589
vendor-advisory, web
-
secunia.com
/advisories/49263
third-party-advisory, vendor-advisory, advisory
-
osvdb.org
/82279
vdb-entry, web
-
securityfocus.com
/bid/53687
vdb-entry, web
-
bugs.launchpad.net
/pycrypto/+bug/985164
web
-
openwall.com
/lists/oss-security/2012/05/25/1
mailing-list, web
-
exchange.xforce.ibmcloud.com
/vulnerabilities/75871
vdb-entry, web
-
github.com
/dlitz/pycrypto/blob/373ea760f21701b162e8c4912a66928ee30d401a/ChangeLog
web
-
nvd.nist.gov
/vuln/detail/CVE-2012-2417
advisory
-
github.com
/Legrandin/pycrypto
package
-
github.com
/pypa/advisory-database/tree/main/vulns/pycrypto/PYSEC-2012-16.yaml
web
-
web.archive.org
/web/20140724111917/http://secunia.com/advisories/49263
web
-
web.archive.org
/web/20200228184120/http://www.securityfocus.com/bid/53687
web
-
github.com
/advisories/GHSA-v367-p58w-98h5
advisory
Sources
- CVE List CVE-2012-2417
- GitHub Advisory GHSA-v367-p58w-98h5
- NVD CVE-2012-2417
- OSV PYSEC-2012-16
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.