
CVE catalog
CVE-2018-6594
pycryptodome: CVE-2018-6594
- Severity
- High
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.03% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pycryptodome | sid | 3.20.0+dfsg-3 | fixed |
| Debian | pycryptodome | forky | 3.20.0+dfsg-3 | fixed |
| Debian | pycryptodome | trixie | 3.20.0+dfsg-3 | fixed |
| Debian | pycryptodome | bookworm | 3.11.0+dfsg1-4 | fixed |
| PyPI | pycrypto | Not reported | Not reported | unknown |
| PyPI | pycrypto | Not reported | Not reported | unknown |
| Ubuntu | python-crypto | 14.04 | 2.6-5 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-2 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-2build1 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-3 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-4 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-4build1 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-4ubuntu0.1 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-4ubuntu0.2 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-4ubuntu0.3 | fixed |
| Ubuntu | python-crypto | 16.04 | 2.6.1-5build1 | vulnerable |
| Ubuntu | python-crypto | 16.04 | 2.6.1-6 | vulnerable |
| Ubuntu | python-crypto | 16.04 | 2.6.1-6build1 | vulnerable |
| Ubuntu | python-crypto | 16.04 | 2.6.1-6ubuntu0.16.04.1 | vulnerable |
| Ubuntu | python-crypto | 16.04 | 2.6.1-6ubuntu0.16.04.2 | vulnerable |
| Ubuntu | python-crypto | 16.04 | 2.6.1-6ubuntu0.16.04.3 | fixed |
| Ubuntu | python-crypto | 14.04 | 2.6-5 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-2 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-2build1 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-3 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-4 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-4build1 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-4ubuntu0.1 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-4ubuntu0.2 | vulnerable |
| Ubuntu | python-crypto | 14.04 | 2.6.1-4ubuntu0.3 | fixed |
| Ubuntu | python-crypto | 16.04 | 2.6.1-5build1 | vulnerable |
| Ubuntu | python-crypto | 16.04 | 2.6.1-6 | vulnerable |
| Ubuntu | python-crypto | 16.04 | 2.6.1-6build1 | vulnerable |
| Ubuntu | python-crypto | 16.04 | 2.6.1-6ubuntu0.16.04.1 | vulnerable |
| Ubuntu | python-crypto | 16.04 | 2.6.1-6ubuntu0.16.04.2 | vulnerable |
| Ubuntu | python-crypto | 16.04 | 2.6.1-6ubuntu0.16.04.3 | fixed |
| Ubuntu | pycryptodome | 18.04 | 3.4.6-1 | vulnerable |
| Ubuntu | pycryptodome | 18.04 | 3.4.7-1 | vulnerable |
| Ubuntu | pycryptodome | 18.04 | 3.4.7-1ubuntu1 | fixed |
| Ubuntu | python-crypto | 18.04 | 2.6.1-7build2 | vulnerable |
| Ubuntu | python-crypto | 18.04 | 2.6.1-8 | vulnerable |
| Ubuntu | python-crypto | 18.04 | 2.6.1-8ubuntu2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pycryptodome | source | sid | 3.4.11-1 | not yet assigned | Not reported | [889998] |
| Debian | pycryptodome | source | forky | 3.4.11-1 | not yet assigned | Not reported | [889998] |
| Debian | pycryptodome | source | trixie | 3.4.11-1 | not yet assigned | Not reported | [889998] |
| Debian | pycryptodome | source | bookworm | 3.4.11-1 | not yet assigned | Not reported | [889998] |
| Ubuntu | python-crypto | deb | 14.04 | 2.6.1-4ubuntu0.3 | Not reported | USN-3616-1 | Not reported |
| Ubuntu | python-crypto | deb | 16.04 | 2.6.1-6ubuntu0.16.04.3 | Not reported | USN-3616-1 | Not reported |
| Ubuntu | python-crypto | deb | 14.04 | 2.6.1-4ubuntu0.3 | Not reported | UBUNTU-CVE-2018-6594 | Not reported |
| Ubuntu | python-crypto | deb | 16.04 | 2.6.1-6ubuntu0.16.04.3 | Not reported | UBUNTU-CVE-2018-6594 | Not reported |
| Ubuntu | pycryptodome | deb | 18.04 | 3.4.7-1ubuntu1 | Not reported | UBUNTU-CVE-2018-6594 | Not reported |
| Ubuntu | python-crypto | deb | 18.04 | 2.6.1-8ubuntu2 | Not reported | UBUNTU-CVE-2018-6594 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-pycryptodome]Fixed
Source package: [pycryptodome]
Details (2)
3.11.0+dfsg1-4· amd64 · bookwormFixed · Fixed:
3.4.11-1dsa · pycryptodome · debian · bookworm; dsa · pycryptodome · debian · 12
3.11.0+dfsg1-4· arm64 · bookwormFixed · Fixed:
3.4.11-1dsa · pycryptodome · debian · bookworm; dsa · pycryptodome · debian · 12
- [python-pycryptodome-doc]Fixed
Source package: [pycryptodome]
Details (2)
3.11.0+dfsg1-4· all · bookwormFixed · Fixed:
3.4.11-1dsa · pycryptodome · debian · bookworm; dsa · pycryptodome · debian · 12
3.11.0+dfsg1-4· all · bookwormFixed · Fixed:
3.4.11-1dsa · pycryptodome · debian · bookworm; dsa · pycryptodome · debian · 12
[Debian 13 (Trixie)]
- [python3-pycryptodome]Fixed
Source package: [pycryptodome]
Details (2)
3.20.0+dfsg-3· amd64 · trixieFixed · Fixed:
3.4.11-1dsa · pycryptodome · debian · 13
3.20.0+dfsg-3· arm64 · trixieFixed · Fixed:
3.4.11-1dsa · pycryptodome · debian · 13
- [python-pycryptodome-doc]Fixed
Source package: [pycryptodome]
Details (2)
3.20.0+dfsg-3· all · trixieFixed · Fixed:
3.4.11-1dsa · pycryptodome · debian · 13
3.20.0+dfsg-3· all · trixieFixed · Fixed:
3.4.11-1dsa · pycryptodome · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-6594]
- [https://osv.dev/vulnerability/GHSA-6528-wvf6-f6qg]
- [https://osv.dev/vulnerability/PYSEC-2018-97]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-6594]
- [https://osv.dev/vulnerability/USN-3616-1]
- [https://security-tracker.debian.org/tracker/CVE-2018-6594]
- [https://wid.cert-bund.de/.well-known/csaf/white/2018/wid-sec-w-2025-0498.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database]