Red Hat VEX
RHVEX-CVE-2018-6594
python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:6 | python-crypto | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | python-crypto | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2018-6594
- https://bugzilla.redhat.com/show_bug.cgi?id=1542313
- https://www.cve.org/CVERecord?id=CVE-2018-6594
- https://nvd.nist.gov/vuln/detail/CVE-2018-6594
- https://github.com/Legrandin/pycryptodome/issues/90
- https://github.com/TElgamal/attack-on-pycrypto-elgamal