dlitz/pycrypto · Security
Pycrypto generates weak key parameters
- GHSA ID
- GHSA-6528-wvf6-f6qg
- CVE ID
- CVE-2018-6594
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v3
- 7.5 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v4
- 8.7 · 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
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.
CWEs
- CWE-326 · Inadequate Encryption Strength
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-6594 ↗
- https://github.com/dlitz/pycrypto/issues/253 ↗
- https://github.com/TElgamal/attack-on-pycrypto-elgamal ↗
- https://github.com/advisories/GHSA-6528-wvf6-f6qg ↗
- https://lists.debian.org/debian-lts-announce/2018/02/msg00018.html ↗
- https://security.gentoo.org/glsa/202007-62 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/pycrypto/PYSEC-2018-97.yaml ↗
- https://usn.ubuntu.com/3616-1 ↗
- https://usn.ubuntu.com/3616-2 ↗