CVE-2018-6594
mediumpriority · track · 31EPSS 0.020 · 81 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (14)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-0498python-crypto: Schwachstelle ermöglicht Offenlegung von InformationenDeutsch2018-02-15csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in python-crypto ausnutzen, um Informationen offenzulegen.
- GHSA-6528-wvf6-f6qgPycrypto generates weak key parameters2018-07-12ghsa · osvUS
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.
- PYSEC-2018-972018-02-03vendor · osvUS
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.
also known as (7)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (19)
External citations — patches, advisories, analysis.
- https://github.com/TElgamal/attack-on-pycrypto-elgamalcnnvd
- https://github.com/dlitz/pycrypto/issues/253cnnvd
- https://lists.debian.org/debian-lts-announce/2018/02/msg00018.htmlcnnvd
- https://packetstormsecurity.com/files/158689/Gentoo-Linux-Security-Advisory-202007-62.htmlcnnvd
- https://security.gentoo.org/glsa/202007-62cnnvd
- https://usn.ubuntu.com/3616-1/cnnvd
- https://usn.ubuntu.com/3616-2/cnnvd
- https://github.com/TElgamal/attack-on-pycrypto-elgamalenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan