ADVISORIES

GitHub Advisory Database

GHSA-6528-wvf6-f6qg

Pycrypto generates weak key parameters

High No fix available CVE-2018-6594PYSEC-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.

Affected packages

EcosystemPackageAffected versions
PyPIpycrypto
All versions up to and including 2.6.1

References