CVEfocus › CVE database › CVE-2018-6594

CVE-2018-6594

CVSS 7.5 HighEPSS 2.1% (higher than 82% of CVEs)Published 2018-02-03Updated 2024-08-05Assigner: mitre

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.

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

PyPI has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
1Fix pending
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04pycryptodomeFixed3.4.7-1ubuntu1UBUNTU-CVE-2018-6594
Ubuntu 18.04python-cryptoFixed2.6.1-8ubuntu2UBUNTU-CVE-2018-6594
Ubuntu 16.04python-cryptoFixed2.6.1-6ubuntu0.16.04.3UBUNTU-CVE-2018-6594
Ubuntu 14.04python-cryptoFixed2.6.1-4ubuntu0.3UBUNTU-CVE-2018-6594
Debian 14pycryptodomeFixed3.4.11-1DEBIAN-CVE-2018-6594
Debian 13pycryptodomeFixed3.4.11-1DEBIAN-CVE-2018-6594
Debian 12pycryptodomeFixed3.4.11-1DEBIAN-CVE-2018-6594
Red Hat Enterprise Linux 7python-cryptoWill not fix
Will not fix
Red Hat Enterprise Linux 6python-cryptoWill not fix
Will not fix
PyPI librarypycryptoFix pendingGHSA-6528-wvf6-f6qg

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.