CVE-2018-6594
HIGH7.5EPSS 0.91%Pycrypto generates weak key parameters
Published: 7/12/2018Modified: 4/28/2026
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.
Affected packages (3)
- Debian/pycryptodomefrom 0, < 3.4.11-1
- PyPI/pycryptofrom 0, <= 2.6.1
- PyPI/pycryptofrom 0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
References (13)
- ADVISORYhttps://github.com/advisories/GHSA-6528-wvf6-f6qg
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2018-6594
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2018-6594
- PATCHhttps://github.com/dlitz/pycrypto
- WEBhttps://github.com/dlitz/pycrypto/issues/253
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/pycrypto/PYSEC-2018-97.yaml
- WEBhttps://github.com/TElgamal/attack-on-pycrypto-elgamal
- WEBhttps://lists.debian.org/debian-lts-announce/2018/02/msg00018.html
- WEBhttps://security.gentoo.org/glsa/202007-62
- WEBhttps://usn.ubuntu.com/3616-1
- WEBhttps://usn.ubuntu.com/3616-1/
- WEBhttps://usn.ubuntu.com/3616-2
- WEBhttps://usn.ubuntu.com/3616-2/