VDB

CVE-2018-6594

CVE-2018-6594 PUBLISHED CVSS 7.5 HIGH

Pycrypto generates weak key parameters

Reported by mitre · Published February 3, 2018

pycrypto is fixed in 2.6.1 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
pycryptoPyPI2.6.1
python3-cryptoAmazon Linux2.6.1-34.amzn2023.0.2
pycryptodomeUbuntu:18.04:LTS3.4.7-1ubuntu1
pycryptodlitz2.6.1
pathvaln/aunspecified
python-cryptoUbuntu:18.04:LTS2.6.1-8ubuntu2
python-cryptoUbuntu:16.04:LTS2.6.1-6ubuntu0.16.04.3

Risk scores

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

Affected products

VendorProductVersions
n/an/an/a
amazon:2023python3-crypto0
n/an/a*
PyPIpycrypto0

Timeline

  • Feb 3, 2018 CVE Published
  • Oct 23, 2018 PoC Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Sep 8, 2025 CVE Updated
  • Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (4 in total, the first dated here)
  • Sep 19, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2018-6594
vulnetix vdb fixes CVE-2018-6594

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-6594/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›