# CVE-2018-6594: python3-crypto: lib/Crypto/PublicKey/ElGamal.py in PyCrypto through 2.6.1 generates weak ElGamal key parameters, which allows attacke...

CVE-2018-6594 is fixed in 6 products on 1 platform, first by python-crypto 2.6.1-8ubuntu2, released February 2, 2018. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2018-6594
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0203
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 2, 2018

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-crypto Ubuntu 18.04.6 LTS (bionic) | 2.6.1-8ubuntu2 | [python-crypto 2.6.1-8ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-crypto-2.6.1-8ubuntu2.md) | Feb 2, 2018 |
| Linux | python-crypto-debugsource amzn 2023 | 2.6.1-34.amzn2023.0.2 | [ALAS2023-2025-1051](https://patchblox.com/security/data/fix/linux/alas2023-2025-1051.md) | Jun 27, 2025 |
| Linux | python-pycryptodome Ubuntu 18.04.6 LTS (bionic) | 3.4.7-1ubuntu1 | [python-pycryptodome 3.4.7-1ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-pycryptodome-3.4.7-1ubuntu1.md) | Feb 2, 2018 |
| Linux | python3-crypto Ubuntu 18.04.6 LTS (bionic) | 2.6.1-8ubuntu2 | [python3-crypto 2.6.1-8ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-crypto-2.6.1-8ubuntu2.md) | Feb 2, 2018 |
| Linux | python3-crypto amzn 2023 | 2.6.1-34.amzn2023.0.2 | [ALAS2023-2025-1051](https://patchblox.com/security/data/fix/linux/alas2023-2025-1051.md) | Jun 27, 2025 |
| Linux | python3-crypto-debuginfo amzn 2023 | 2.6.1-34.amzn2023.0.2 | [ALAS2023-2025-1051](https://patchblox.com/security/data/fix/linux/alas2023-2025-1051.md) | Jun 27, 2025 |
| Linux | python3-pycryptodome Ubuntu 18.04.6 LTS (bionic) | 3.4.7-1ubuntu1 | [python3-pycryptodome 3.4.7-1ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-pycryptodome-3.4.7-1ubuntu1.md) | Feb 2, 2018 |

---

Data as of 2026-11-07T06:34:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo
