Descriptionlib/Crypto/PublicKey/ in PyCrypto through 2.6.1 generates weak ElGamal key parameters, which allows attackers to obtain sensitive information by reading ciphertext data (i.e., it does not have semantic security in face of a ciphertext-only attack). The Decisional Diffie-Hellman (DDH) assumption does not hold for PyCrypto's ElGamal implementation.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium
Debian Bugs889998, 889999

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pycryptodome (PTS)buster3.6.1-2fixed
bullseye, sid3.9.7+dfsg1-1fixed
python-crypto (PTS)stretch2.6.1-7vulnerable
bullseye, sid2.6.1-13.1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs


[stretch] - python-crypto <no-dsa> (Minor issue)
[jessie] - python-crypto <no-dsa> (Minor issue)
[wheezy] - python-crypto <no-dsa> (Minor issue)
The issue is found as well in pycryptodome (fork from python-crypto)
PyCrytpodome: (3.4.10)
See further discussion as per
Upstream feels that this is not a vulnerability in pycryptodome/python-crypto,
but in an application using it in an insecure manner.

Search for package or bug name: Reporting problems