ADVISORIES

Vulnerability

CVE-2018-6594

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.

7 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • ALAS2023-2025-1051

    Amazon Linux 2023 - ALAS2023-2025-1051: Medium priority package update for python-crypto

    Medium CVE-2018-6594 Amazon Linux Updated 10 July 2025
  • DEBIAN-CVE-2018-6594

    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…

    CVE-2018-6594 Debian Updated 23 October 2026
  • GHSA-6528-wvf6-f6qg

    Pycrypto generates weak key parameters

    High CVE-2018-6594 PyPI Updated 18 October 2024
  • PYSEC-2018-97

    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…

    CVE-2018-6594 PyPI Updated 8 November 2023
  • RHVEX-CVE-2018-6594

    python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext

    Moderate CVE-2018-6594 Red Hat Updated 7 November 2026
  • UBUNTU-CVE-2018-6594

    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…

    CVE-2018-6594 Ubuntu Updated 4 February 2026
  • USN-3616-1

    python-crypto vulnerability

    CVE-2018-6594 Ubuntu Updated 10 February 2026

References