CVE-2018-6594Dlitz Pycrypto
High 7.5 No auth needed
Follow: this CVE · Dlitz · Dlitz Pycrypto We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 82
- Auth required
- No
- Published
- Feb 3, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-326
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Pycrypto.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pycrypto |
≤ 2.6.1 |
no fixed version | — |
| PyPI | pycrypto |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-6528-wvf6-f6qg, PYSEC-2018-97). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| dlitz | pycrypto | ≤ 2.6.1 |
| debian | debian_linux | 7.0 |
| canonical | ubuntu_linux | 12.04 |
| canonical | ubuntu_linux | 14.04 |
| canonical | ubuntu_linux | 16.04 |
| canonical | ubuntu_linux | 17.10 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- github.com Exploit Issue Tracking Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- security.gentoo.org
- usn.ubuntu.com Third Party Advisory
- usn.ubuntu.com Third Party Advisory