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.
References (6)
Core 6
Core References
Third Party Advisory x_refsource_misc
https://github.com/TElgamal/attack-on-pycrypto-elgamal
Third Party Advisory vendor-advisory
x_refsource_ubuntu
https://usn.ubuntu.com/3616-1/
Exploit, Issue Tracking, Third Party Advisory x_refsource_misc
https://github.com/dlitz/pycrypto/issues/253
Mailing List, Third Party Advisory mailing-list
x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2018/02/msg00018.html
Third Party Advisory vendor-advisory
x_refsource_ubuntu
https://usn.ubuntu.com/3616-2/
Third Party Advisory vendor-advisory
x_refsource_gentoo
https://security.gentoo.org/glsa/202007-62
Scores
CVSS v3
7.5
EPSS
0.0080
EPSS Percentile
74.1%
Attack Vector
NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Details
CWE
CWE-326
Status
published
Products (7)
canonical/ubuntu_linux
12.04
canonical/ubuntu_linux
14.04
canonical/ubuntu_linux
16.04
canonical/ubuntu_linux
17.10
debian/debian_linux
7.0
dlitz/pycrypto
< 2.6.1
pypi/pycrypto
0PyPI
Published
Feb 03, 2018
Tracked Since
Feb 18, 2026