Skip to content

CVE-2018-6594 Pycrypto generates weak key parameters

HighCVSS 7.5 EPSS 2.0%
Published
Updated
Exploit status
No public exploit known

Description

lib/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.

Affected products

ProductAffected versionsFixed in
pypi pycrypto(PyPI) <= 2.6.1 No fix listed
pypi pycrypto(PyPI) = 1.9a2 No fix listed
pypi pycrypto(PyPI) = 1.9a5 No fix listed
pypi pycrypto(PyPI) = 1.9a6 No fix listed
pypi pycrypto(PyPI) = 2.0 No fix listed
pypi pycrypto(PyPI) = 2.0.1 No fix listed
pypi pycrypto(PyPI) = 2.1.0 No fix listed
pypi pycrypto(PyPI) = 2.2 No fix listed
pypi pycrypto(PyPI) = 2.3 No fix listed
pypi pycrypto(PyPI) = 2.4 No fix listed
pypi pycrypto(PyPI) = 2.4.1 No fix listed
pypi pycrypto(PyPI) = 2.5 No fix listed
pypi pycrypto(PyPI) = 2.6 No fix listed
pypi pycrypto(PyPI) = 2.6.1 No fix listed
pypi pycrypto(PyPI) All versions No fix listed
debian/pycryptodome(Debian:12) < 3.4.11-1 3.4.11-1
debian/pycryptodome(Debian:13) < 3.4.11-1 3.4.11-1
debian/pycryptodome(Debian:14) < 3.4.11-1 3.4.11-1
dlitz pycrypto <= 2.6.1 No fix listed
debian linux = 7.0 No fix listed
Canonical Ubuntu Linux = 12.04 No fix listed
Canonical Ubuntu Linux = 14.04 No fix listed
Canonical Ubuntu Linux = 16.04 No fix listed
Canonical Ubuntu Linux = 17.10 No fix listed

References