CVE-2018-6594

NameCVE-2018-6594
Descriptionlib/Crypto/PublicKey/ElGamal.py 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)
ReferencesDLA-1283-1
Debian Bugs889998, 889999

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pycryptodome (PTS)buster, sid3.4.7-1vulnerable
python-crypto (PTS)wheezy2.6-4+deb7u3vulnerable
wheezy (security)2.6-4+deb7u8fixed
jessie2.6.1-5+deb8u1vulnerable
stretch2.6.1-7vulnerable
buster, sid2.6.1-8vulnerable

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pycryptodomesource(unstable)(unfixed)889998
python-cryptosource(unstable)(unfixed)889999
python-cryptosourcewheezy2.6-4+deb7u8DLA-1283-1

Notes

PyCrypto: https://github.com/dlitz/pycrypto/issues/253
The issue is found as well in pycryptodome (fork from python-crypto)
PyCryptodome: https://github.com/Legrandin/pycryptodome/issues/90
PyCrytpodome: https://github.com/Legrandin/pycryptodome/commit/99c27a3b9e8a884bbde0e88c63234b669d4398d8 (3.4.10)
See further discussion as per https://github.com/Legrandin/pycryptodome/issues/90#issuecomment-362783537

Search for package or bug name: Reporting problems