CVE-2012-2417

Summary

CVECVE-2012-2417
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2012-06-17 03:41:40 UTC
Updated2026-04-29 01:13:23 UTC
DescriptionPyCrypto 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.

Risk And Classification

Primary CVSS: v2.0 4.3 from [email protected]

AV:N/AC:M/Au:N/C:N/I:P/A:N

Problem Types: CWE-310 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
None
Integrity
Partial
Availability
None

AV:N/AC:M/Au:N/C:N/I:P/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Dlitz Pycrypto 1.0.0 All All All
Application Dlitz Pycrypto 1.0.1 All All All
Application Dlitz Pycrypto 1.0.2 All All All
Application Dlitz Pycrypto 1.1 alpha2 All All
Application Dlitz Pycrypto 1.9 alpha1 All All
Application Dlitz Pycrypto 1.9 alpha2 All All
Application Dlitz Pycrypto 1.9 alpha3 All All
Application Dlitz Pycrypto 1.9 alpha4 All All
Application Dlitz Pycrypto 1.9 alpha5 All All
Application Dlitz Pycrypto 1.9 alpha6 All All
Application Dlitz Pycrypto 2.0 All All All
Application Dlitz Pycrypto 2.0.1 All All All
Application Dlitz Pycrypto 2.1.0 All All All
Application Dlitz Pycrypto 2.1.0 alpha1 All All
Application Dlitz Pycrypto 2.1.0 alpha2 All All
Application Dlitz Pycrypto 2.1.0 beta1 All All
Application Dlitz Pycrypto 2.2 All All All
Application Dlitz Pycrypto 2.3 All All All
Application Dlitz Pycrypto 2.4 All All All
Application Dlitz Pycrypto 2.4.1 All All All
Application Dlitz Pycrypto All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
oss-security - CVE-2012-2417 - PyCrypto <= 2.5 insecure ElGamal key generation af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
[SECURITY] Fedora 15 Update: python-crypto-2.3-6.fc15 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
[SECURITY] Fedora 16 Update: python-crypto-2.3-6.fc16 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
www.osvdb.org/82279 af854a3a-2127-422b-91ae-364da2661108 www.osvdb.org
Malformed Request af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
Bug #985164 “ElGamal key generation is broken” : Bugs : Python-Crypto af854a3a-2127-422b-91ae-364da2661108 bugs.launchpad.net
Security Alerts - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Vendor Advisory
[SECURITY] Fedora 17 Update: python-crypto-2.6-1.fc17 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
pycrypto/ChangeLog at 373ea760f21701b162e8c4912a66928ee30d401a · pycrypto/pycrypto · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com
Support / Security / Advisories / / MDVSA-2012:117 | Mandriva af854a3a-2127-422b-91ae-364da2661108 www.mandriva.com
IBM X-Force Exchange af854a3a-2127-422b-91ae-364da2661108 exchange.xforce.ibmcloud.com
Debian -- Security Information -- DSA-2502-1 python-crypto af854a3a-2127-422b-91ae-364da2661108 www.debian.org
Fix to bug #985164 (ElGamal key generation). Fix to missing range che… · Legrandin/pycrypto@9f912f1 · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Exploit, Patch
hermes.opensuse.org/messages/15083589 af854a3a-2127-422b-91ae-364da2661108 hermes.opensuse.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report