Live threats

All CVEs / Dlitz

CVE-2018-6594Dlitz Pycrypto

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
2.1%
probability of exploitation in 30 days · percentile 82
Auth required
No
Published
Feb 3, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-326
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pycrypto.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pycrypto ≤ 2.6.1 no fixed version —
PyPI pycrypto all no fixed version —

Per OSV / GitHub Advisories (GHSA-6528-wvf6-f6qg, PYSEC-2018-97). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
dlitzpycrypto≤ 2.6.1
debiandebian_linux7.0
canonicalubuntu_linux12.04
canonicalubuntu_linux14.04
canonicalubuntu_linux16.04
canonicalubuntu_linux17.10

Official sources

References

Links published by the sources. Open them with care.