CVE-2018-6594

Public on 2018-02-03
Modified on 2025-03-05
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.
Severity
Medium severity
Medium
CVSS v3 Base Score
5.3
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 1 python-crypto 2018-03-21 ALAS-2018-977 Fixed
Amazon Linux 2 - Ansible2 Extra python-crypto 2025-03-03 ALAS2ANSIBLE2-2025-012 Fixed
Amazon Linux 2023 python-crypto Pending Fix
Amazon Linux 2 - Core python-cryptography Not Affected
Amazon Linux 2023 python-cryptography Not Affected
Amazon Linux 2023 python-pycryptodomex Not Affected

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 5.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD CVSSv2 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N
NVD CVSSv3 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N