cve.bz

CVE-2018-6594 Inadequate Encryption Strength

7.5 highExploit referenceEPSS 2.1%

High (7.5). EPSS 2.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
2.1% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-326 Inadequate Encryption Strength
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-6594 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-6594?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-6594?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-6594 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
dlitz:pycryptothrough 2.6.1
debian:debian_linux7.0
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6528-wvf6-f6qgPyPIpycrypto<=2.6.1no fix published
PYSEC-2018-97PyPIpycryptoall versionsno fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14pycryptodome3.4.11-1DEBIAN-CVE-2018-6594
Ubuntu14.04:LTSpython-crypto2.6.1-4ubuntu0.3UBUNTU-CVE-2018-6594 USN-3616-1
Ubuntu16.04:LTSpython-crypto2.6.1-6ubuntu0.16.04.3UBUNTU-CVE-2018-6594 USN-3616-1
Ubuntu18.04:LTSpycryptodome3.4.7-1ubuntu1UBUNTU-CVE-2018-6594
Ubuntu18.04:LTSpython-crypto2.6.1-8ubuntu2UBUNTU-CVE-2018-6594

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Starting in Red Hat Enterprise Linux (RHEL) 8 the python-crypto is not delivered anymore, therefore RHEL 8 is not affected by this vulnerability.

ProductPackageStateAdvisory
CloudForms Management Engine 5python-cryptoWill not fix
Red Hat Ceph Storage 1.3python-cryptoWill not fix
Red Hat Ceph Storage 2python-cryptoWill not fix
Red Hat Ceph Storage 3python-cryptoWill not fix
Red Hat Enterprise Linux 6python-cryptoWill not fix
Red Hat Enterprise Linux 7python-cryptoWill not fix
Red Hat Enterprise Linux OpenStack Platform 6 (Juno)python-cryptoWill not fix
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo)python-cryptoWill not fix
Red Hat OpenShift Enterprise 3python-cryptoWill not fix
Red Hat OpenStack Platform 10 (Newton)python-cryptoWill not fix
Red Hat OpenStack Platform 11 (Ocata)python-cryptoWill not fix
Red Hat OpenStack Platform 12 (Pike)python-cryptoWill not fix
Red Hat OpenStack Platform 13 (Queens)python-cryptoWill not fix
Red Hat OpenStack Platform 8 (Liberty)python-cryptoWill not fix
Red Hat OpenStack Platform 9 (Mitaka)python-cryptoWill not fix
Red Hat Storage 3python-cryptoWill not fix
Red Hat Storage Console 2python-cryptoWill not fix
Red Hat Virtualization 4python-cryptoWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-6594.

Attack patterns (CAPEC)

  • CAPEC-20 Encryption Brute Forcing Likelihood: Low · Severity: Low
  • CAPEC-112 Brute Force Severity: High
  • CAPEC-192 Protocol Analysis Likelihood: Low · Severity: Low

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON