CVE-2018-6594
publishedpython-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2ANSIBLE2-2025-012 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1051 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | trusty | python-crypto | Advisory build | 2.6.1-4ubuntu0.3 | USN-3616-1 |
| Amazon Linux | AL2 | python-cryptoaarch64 | Listed in advisory | Not stated | ALAS2ANSIBLE2-2025-012 |
| Ubuntu | trusty | python3-crypto | Advisory build | 2.6.1-4ubuntu0.3 | USN-3616-1 |
Show 8 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | xenial | python-crypto | Advisory build | 2.6.1-6ubuntu0.16.04.3 | USN-3616-1 |
| Ubuntu | xenial | python3-crypto | Advisory build | 2.6.1-6ubuntu0.16.04.3 | USN-3616-1 |
| Amazon Linux | AL2 | python-cryptoi686 | Listed in advisory | Not stated | ALAS2ANSIBLE2-2025-012 |
| Amazon Linux | AL2 | python-cryptosrc | Listed in advisory | Not stated | ALAS2ANSIBLE2-2025-012 |
| Amazon Linux | AL2 | python-cryptox86_64 | Listed in advisory | Not stated | ALAS2ANSIBLE2-2025-012 |
| Amazon Linux | AL2023 | python-cryptoaarch64 | Listed in advisory | Not stated | ALAS2023-2025-1051 |
| Amazon Linux | AL2023 | python-cryptosrc | Listed in advisory | Not stated | ALAS2023-2025-1051 |
| Amazon Linux | AL2023 | python-cryptox86_64 | Listed in advisory | Not stated | ALAS2023-2025-1051 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
6- https://github.com/TElgamal/attack-on-pycrypto-elgamal
- https://github.com/dlitz/pycrypto/issues/253
- [debian-lts-announce] 20180215 [SECURITY] [DLA 1283-1] python-crypto security update https://lists.debian.org/debian-lts-announce/2018/02/msg00018.html
- GLSA-202007-62 https://security.gentoo.org/glsa/202007-62
- USN-3616-1 https://usn.ubuntu.com/3616-1/
- USN-3616-2 https://usn.ubuntu.com/3616-2/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 473e975677db71323f9a91170081f4096d0e660e85f6ed32c8cdd4ec4409f0dd
- Ingested
- 23 Sep 2026, 07:45:01 UTC
- Source record
- Official CVE record