CVE-2018-6594

MEDIUM

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.

References

https://github.com/dlitz/pycrypto/issues/253

https://github.com/TElgamal/attack-on-pycrypto-elgamal

https://lists.debian.org/debian-lts-announce/2018/02/msg00018.html

https://usn.ubuntu.com/3616-1/

https://usn.ubuntu.com/3616-2/

Details

Source: MITRE

Published: 2018-02-03

Updated: 2019-03-01

Type: CWE-310

Risk Information

CVSS v2.0

Base Score: 5

Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N

Impact Score: 2.9

Exploitability Score: 10

Severity: MEDIUM

CVSS v3.0

Base Score: 7.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Impact Score: 3.6

Exploitability Score: 3.9

Severity: HIGH