—
PYSEC-2018-97
Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/pycrypto
Introduced in:
0No fixed version published yet for pycrypto (pip). Pin to a known-safe version or switch to an alternative.
References
- https://github.com/TElgamal/attack-on-pycrypto-elgamal[WEB]
- https://github.com/dlitz/pycrypto/issues/253[REPORT]
- https://lists.debian.org/debian-lts-announce/2018/02/msg00018.html[WEB]
- https://usn.ubuntu.com/3616-1/[WEB]
- https://usn.ubuntu.com/3616-2/[WEB]
- https://security.gentoo.org/glsa/202007-62[ADVISORY]
- https://github.com/advisories/GHSA-6528-wvf6-f6qg[ADVISORY]