CVE-2018-6594: Weak Encryption

Published Feb 3, 2018
·
Updated

Last updated 25 August 2025

Other sources

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.

Launchpad

Affected Software

8 affected componentsFixes available
pip/pycrypto<=2.6.1
debian/pycryptodome
3.9.7+dfsg1-13.11.0+dfsg1-43.20.0+dfsg-3
dlitz pycrypto<=2.6.1
Debian Debian Linux=7.0
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/pycryptodome to a version that resolves this vulnerability.

    Fixed in 3.9.7+dfsg1-1Fixed in 3.11.0+dfsg1-4Fixed in 3.20.0+dfsg-3
  2. Upgrade

    Upgrade PyCrypto to a version that resolves this vulnerability.

    Fixed in 2.6.1
  3. Compensating control

    Mitigate ciphertext-only exposure by preventing attackers from accessing ciphertexts that could be targeted against PyCrypto's ElGamal implementation.

Event History

Feb 3, 2018
CVE Published
via MITRE·03:00 AM
Data Sourced
via MITRE·03:00 AM
Description
Data Sourced
via NVD·03:29 PM
DescriptionSeverityWeaknessAffected Software
Jul 12, 2018
Advisory Published
via GitHub·08:29 PM
Jan 11, 2024
Data Sourced
via Launchpad·11:09 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·08:40 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-6594?

CVE-2018-6594 is classified as a medium severity vulnerability due to its potential to expose sensitive information.

2

How do I fix CVE-2018-6594?

To fix CVE-2018-6594, upgrade from PyCrypto version 2.6.1 to an alternative library such as PyCryptodome or a newer version of PyCryptography.

3

What software is affected by CVE-2018-6594?

CVE-2018-6594 affects PyCrypto versions up to and including 2.6.1 and various Debian and Ubuntu Linux distributions with specific versions.

4

What type of attack does CVE-2018-6594 allow for?

CVE-2018-6594 allows attackers to perform ciphertext-only attacks by exploiting weak ElGamal key parameters.

5

Is CVE-2018-6594 still a concern for users?

Yes, CVE-2018-6594 remains a concern for users still utilizing vulnerable versions of PyCrypto.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203