CVE-2012-2417

Exp

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.

Published: 2012-06-17 Last update: 2026-04-29 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2012-2417 is rated High Exploit Risk (63.1/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 4.09%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2012-2417

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2012-2417

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-04-06 3.82% 4.09% +0.26%
2 2025-03-30 8.89% 3.82% -5.07%
3 2025-03-29 8.89%

Full EPSS history (7 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2012-2417

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
4.3 2.0 MEDIUM
AV:N/AC:M/Au:N/C:N/I:P/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:N)
No confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:N)
No availability impact.
8.6 2.9 [email protected]

Weakness enumeration for CVE-2012-2417

GitHub Security Advisory for CVE-2012-2417

GHSA-v367-p58w-98h5 · Severity: medium · Ecosystem: pip — PyCrypto makes Use of Insufficiently Random Values

OS Trackers for CVE-2012-2417

vendor priority summary link
gentoo normal CVE-2012-2417: 1 GLSA(s) (201206-23), 1 atom(s) (dev-python/pycrypto); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2012-2417
redhat medium https://access.redhat.com/security/cve/CVE-2012-2417
ubuntu medium CVE-2012-2417 medium priority: Ubuntu including 1 source packages (python-crypto), 6 status rows across 6 suites (hardy, lucid, natty, oneiric, precise, upstream): released 5, ignored 1. https://ubuntu.com/security/CVE-2012-2417

Affected software / configurations for CVE-2012-2417

Vendor Product Version Raw CPE
dlitz pycrypto <= 2.5 cpe:2.3:a:dlitz:pycrypto:*:*:*:*:*:*:*:*
dlitz pycrypto 1.0.0 cpe:2.3:a:dlitz:pycrypto:1.0.0:*:*:*:*:*:*:*
dlitz pycrypto 1.0.1 cpe:2.3:a:dlitz:pycrypto:1.0.1:*:*:*:*:*:*:*
dlitz pycrypto 1.0.2 cpe:2.3:a:dlitz:pycrypto:1.0.2:*:*:*:*:*:*:*
dlitz pycrypto 1.1 cpe:2.3:a:dlitz:pycrypto:1.1:alpha2:*:*:*:*:*:*
dlitz pycrypto 1.9 cpe:2.3:a:dlitz:pycrypto:1.9:alpha1:*:*:*:*:*:*
dlitz pycrypto 1.9 cpe:2.3:a:dlitz:pycrypto:1.9:alpha2:*:*:*:*:*:*
dlitz pycrypto 1.9 cpe:2.3:a:dlitz:pycrypto:1.9:alpha3:*:*:*:*:*:*
dlitz pycrypto 1.9 cpe:2.3:a:dlitz:pycrypto:1.9:alpha4:*:*:*:*:*:*
dlitz pycrypto 1.9 cpe:2.3:a:dlitz:pycrypto:1.9:alpha5:*:*:*:*:*:*
dlitz pycrypto 1.9 cpe:2.3:a:dlitz:pycrypto:1.9:alpha6:*:*:*:*:*:*
dlitz pycrypto 2.0 cpe:2.3:a:dlitz:pycrypto:2.0:*:*:*:*:*:*:*
dlitz pycrypto 2.0.1 cpe:2.3:a:dlitz:pycrypto:2.0.1:*:*:*:*:*:*:*
dlitz pycrypto 2.1.0 cpe:2.3:a:dlitz:pycrypto:2.1.0:*:*:*:*:*:*:*
dlitz pycrypto 2.1.0 cpe:2.3:a:dlitz:pycrypto:2.1.0:alpha1:*:*:*:*:*:*
dlitz pycrypto 2.1.0 cpe:2.3:a:dlitz:pycrypto:2.1.0:alpha2:*:*:*:*:*:*
dlitz pycrypto 2.1.0 cpe:2.3:a:dlitz:pycrypto:2.1.0:beta1:*:*:*:*:*:*
dlitz pycrypto 2.2 cpe:2.3:a:dlitz:pycrypto:2.2:*:*:*:*:*:*:*
dlitz pycrypto 2.3 cpe:2.3:a:dlitz:pycrypto:2.3:*:*:*:*:*:*:*
dlitz pycrypto 2.4 cpe:2.3:a:dlitz:pycrypto:2.4:*:*:*:*:*:*:*
dlitz pycrypto 2.4.1 cpe:2.3:a:dlitz:pycrypto:2.4.1:*:*:*:*:*:*:*

References for CVE-2012-2417

URL Tags
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://secunia.com/advisories/49263 Vendor Advisory
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/Legrandin/pycrypto/commit/9f912f13df99ad3421eff360d6a62d7dbec755c2 Exploit Patch
https://github.com/dlitz/pycrypto/blob/373ea760f21701b162e8c4912a66928ee30d401a/ChangeLog
https://hermes.opensuse.org/messages/15083589
cvelogic Threat Intelligence