CVE-2018-6594: Pycrypto generates weak key parameters

CVE-2018-6594 · Severity: low · CVSS 3 · Published 2018-02-03

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.

Technologies: pycrypto (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2018-6594 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2018-6594 being exploited in the wild.
How severe is CVE-2018-6594?
Low severity, with a CVSS score of 3, published 3 February 2018.
Which products and versions are affected?
pycrypto (PyPI) ECOSYSTEM:introduced=0, ECOSYSTEM:introduced=0,last_affected=2.6.1.
Is there a fix for CVE-2018-6594?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
Am I affected by CVE-2018-6594?
Check whether you run pycrypto (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Affected products

  • pycrypto (PyPI) ECOSYSTEM:introduced=0, ECOSYSTEM:introduced=0,last_affected=2.6.1

Identifiers

  • CVE-2018-6594
  • GHSA-6528-wvf6-f6qg
  • PYSEC-2018-97

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.