CVE-2018-6594
published 2018-02-03CVE-2018-6594: lib/Crypto/PublicKey/ElGamal.py in PyCrypto through 2.6.1 generates weak ElGamal key parameters, which allows attackers to obtain sensitive information by…
PriorityP337high7.5CVSS 3.0
AVNACLPRNUINSUCHINAN
EPSS
2.07%
79.5th percentile
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.
Affected
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | pycryptodome | < pycryptodome 3.4.11-1 (bookworm) | pycryptodome 3.4.11-1 (bookworm) |
| dlitz | pycrypto | <= 2.6.1 | — |
| dlitz | pycrypto | 0 – 2.6.1 | — |
| paloalto | pan-os | — | — |
| pycryptodome | pycryptodome | >= 0 < 3.4.11-1 | 3.4.11-1 |
| pycryptodome | pycryptodome | >= 0 < 3.4.11-1 | 3.4.11-1 |
| pycryptodome | pycryptodome | >= 0 < 3.4.11-1 | 3.4.11-1 |
| pycryptodome | pycryptodome | >= 0 < 3.4.11-1 | 3.4.11-1 |
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Palo Alto
PAN-SA-2025-0012 Informational Bulletin: OSS CVEs Fixed in PAN-OS
vendor_paloalto·2025-07-09·CVSS 7.5
CVE-2018-6594 [HIGH] PAN-SA-2025-0012 Informational Bulletin: OSS CVEs Fixed in PAN-OS
PAN-SA-2025-0012 Informational Bulletin: OSS CVEs Fixed in PAN-OS
The Palo Alto Networks Product Security Assurance team has evaluated the following open source software (OSS) CVEs as they relate to PAN-OS. While it was not determined that these CVEs have any significant impact on PAN-OS, they have been fixed out of an abundance of caution. CVE Summary CVE-2018-6594 This CVE is fixed in PAN-OS 10.2.17, 11.1.11, 11.2.8, 12.1.2, and all later versions of PAN-OS CVE-2018-25032 This CVE is fixed in PAN-OS 10.1.7, 10.2.2, and all later versions of PAN-OS CVE-2019-5827 This CVE is fixed in PAN-OS 11.1.4, and all later versions of PAN-OS. CVE-2019-13750 This CVE is fixed in PAN-OS 11.1.4, and all later versions of PAN-OS. CVE-2019-13751 This CVE is fixed in PAN-OS 11.1.4, and all later versions
Palo Alto
PAN-SA-2025-0012 Informational Bulletin: OSS CVEs Fixed in PAN-OS
vendor_paloalto·2025-07-09·CVSS 7.5
CVE-2023-38546 [HIGH] PAN-SA-2025-0012 Informational Bulletin: OSS CVEs Fixed in PAN-OS
PAN-SA-2025-0012 Informational Bulletin: OSS CVEs Fixed in PAN-OS
The Palo Alto Networks Product Security Assurance team has evaluated the following open source software (OSS) CVEs as they relate to PAN-OS. While it was not determined that these CVEs have any significant impact on PAN-OS, they have been fixed out of an abundance of caution. CVE Summary CVE-2018-6594 This CVE is fixed in PAN-OS 10.2.17, 11.1.11, 11.2.8, 12.1.2, and all later versions of PAN-OS CVE-2018-25032 This CVE is fixed in PAN-OS 10.1.7, 10.2.2, and all later versions of PAN-OS CVE-2019-5827 This CVE is fixed in PAN-OS 11.1.4, and all later versions of PAN-OS. CVE-2019-13750 This CVE is fixed in PAN-OS 11.1.4, and all later versions of PAN-OS. CVE-2019-13751 This CVE is fixed in PAN-OS 11.1.4, and all later versions
Ubuntu
Python Crypto vulnerability
vendor_ubuntu·2018-04-09
CVE-2018-6594 Python Crypto vulnerability
Title: Python Crypto vulnerability
Summary: Python Crypto could expose sensitive information.
USN-3616-1 fixed a vulnerability in Python Crypto. This update provides
the corresponding update for Ubuntu 12.04 ESM.
Original advisory details:
It was discovered that Python Crypto incorrectly generated ElGamal key
parameters. A remote attacker could possibly use this issue to obtain
sensitive information.
Instructions: In general, a standard system update will make all the necessary changes.
Ubuntu
Python Crypto vulnerability
vendor_ubuntu·2018-04-03
CVE-2018-6594 Python Crypto vulnerability
Title: Python Crypto vulnerability
Summary: Python Crypto could expose sensitive information.
It was discovered that Python Crypto incorrectly generated ElGamal key
parameters. A remote attacker could possibly use this issue to obtain
sensitive information.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext
vendor_redhat·2018-02-03·CVSS 7.5
CVE-2018-6594 [HIGH] CWE-325 python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext
python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext
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.
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.
Package: python-crypto (CloudForms Management Engine 5) - Will not fix
Package: python-crypto (Red Hat Ceph Storage 1.3) - Will not fix
Packag
Debian
CVE-2018-6594: pycryptodome - lib/Crypto/PublicKey/ElGamal.py in PyCrypto through 2.6.1 generates weak ElGamal...
vendor_debian·2018·CVSS 7.5
CVE-2018-6594 [HIGH] CVE-2018-6594: pycryptodome - lib/Crypto/PublicKey/ElGamal.py in PyCrypto through 2.6.1 generates weak ElGamal...
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.
Scope: local
bookworm: resolved (fixed in 3.4.11-1)
bullseye: resolved (fixed in 3.4.11-1)
forky: resolved (fixed in 3.4.11-1)
sid: resolved (fixed in 3.4.11-1)
trixie: resolved (fixed in 3.4.11-1)
GHSA
Pycrypto generates weak key parameters
ghsa·2018-07-12
CVE-2018-6594 [HIGH] CWE-326 Pycrypto generates weak key parameters
Pycrypto generates weak key parameters
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.
OSV
Pycrypto generates weak key parameters
osv·2018-07-12
CVE-2018-6594 [HIGH] Pycrypto generates weak key parameters
Pycrypto generates weak key parameters
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.
OSV
CVE-2018-6594: lib/Crypto/PublicKey/ElGamal
osv·2018-02-03·CVSS 7.5
CVE-2018-6594 [HIGH] CVE-2018-6594: lib/Crypto/PublicKey/ElGamal
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-6594 python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext [fedora-all]
bugzilla·2018-02-06·CVSS 7.5
CVE-2018-6594 [HIGH] CVE-2018-6594 python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext [fedora-all]
CVE-2018-6594 python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelo
Bugzilla
CVE-2018-6594 python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext [epel-all]
bugzilla·2018-02-06·CVSS 7.5
CVE-2018-6594 [HIGH] CVE-2018-6594 python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext [epel-all]
CVE-2018-6594 python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog an
Bugzilla
CVE-2018-6594 python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext
bugzilla·2018-02-06·CVSS 7.5
CVE-2018-6594 [HIGH] CVE-2018-6594 python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext
CVE-2018-6594 python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext
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).
External References:
https://github.com/TElgamal/attack-on-pycrypto-elgamal
https://github.com/Legrandin/pycryptodome/issues/90
Upstream Issue:
https://github.com/dlitz/pycrypto/issues/253
Discussion:
Created python-crypto tracking bugs for this issue:
Affects: epel-all [bug 1542315]
Affects: fedora-all [bug 1542314]
---
The Red Hat OpenStack packages that use functionality fr
https://github.com/TElgamal/attack-on-pycrypto-elgamalhttps://github.com/dlitz/pycrypto/issues/253https://lists.debian.org/debian-lts-announce/2018/02/msg00018.htmlhttps://security.gentoo.org/glsa/202007-62https://usn.ubuntu.com/3616-1/https://usn.ubuntu.com/3616-2/https://github.com/TElgamal/attack-on-pycrypto-elgamalhttps://github.com/dlitz/pycrypto/issues/253https://lists.debian.org/debian-lts-announce/2018/02/msg00018.htmlhttps://security.gentoo.org/glsa/202007-62https://usn.ubuntu.com/3616-1/https://usn.ubuntu.com/3616-2/
2018-02-03
Published