python-crypto: Weak ElGamal key parameters in PublicKey/ElGamal.py allow attackers to obtain sensitive information by reading ciphertext
Published Feb 3, 2018
8.7
HIGHCVSS 4.0
EPSS 2.03%
Description
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 products
No data.
Configuration 2
- 7.0
Configuration 3
- 12.04
- 14.04
- 16.04
- 17.10
No data.
CloudForms Management Engine 5
python-crypto
Will not fix
Red Hat Ceph Storage 1.3
python-crypto
Will not fix
Red Hat Ceph Storage 2
python-crypto
Will not fix
Red Hat Ceph Storage 3
python-crypto
Will not fix
Red Hat Enterprise Linux 6
python-crypto
Will not fix
Red Hat Enterprise Linux 7
python-crypto
Will not fix
Red Hat Enterprise Linux OpenStack Platform 6 (Juno)
python-crypto
Will not fix
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo)
python-crypto
Will not fix
Red Hat OpenShift Enterprise 3
python-crypto
Will not fix
Red Hat OpenStack Platform 10 (Newton)
python-crypto
Will not fix
Red Hat OpenStack Platform 11 (Ocata)
python-crypto
Will not fix
Red Hat OpenStack Platform 12 (Pike)
python-crypto
Will not fix
Red Hat OpenStack Platform 13 (Queens)
python-crypto
Will not fix
Red Hat OpenStack Platform 8 (Liberty)
python-crypto
Will not fix
Red Hat OpenStack Platform 9 (Mitaka)
python-crypto
Will not fix
Red Hat Storage 3
python-crypto
Will not fix
Red Hat Storage Console 2
python-crypto
Will not fix
Red Hat Virtualization 4
python-crypto
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| CloudForms Management Engine 5 | python-crypto | Will not fix | n/a |
| Red Hat Ceph Storage 1.3 | python-crypto | Will not fix | n/a |
| Red Hat Ceph Storage 2 | python-crypto | Will not fix | n/a |
| Red Hat Ceph Storage 3 | python-crypto | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | python-crypto | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | python-crypto | Will not fix | n/a |
| Red Hat Enterprise Linux OpenStack Platform 6 (Juno) | python-crypto | Will not fix | n/a |
| Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) | python-crypto | Will not fix | n/a |
| Red Hat OpenShift Enterprise 3 | python-crypto | Will not fix | n/a |
| Red Hat OpenStack Platform 10 (Newton) | python-crypto | Will not fix | n/a |
| Red Hat OpenStack Platform 11 (Ocata) | python-crypto | Will not fix | n/a |
| Red Hat OpenStack Platform 12 (Pike) | python-crypto | Will not fix | n/a |
| Red Hat OpenStack Platform 13 (Queens) | python-crypto | Will not fix | n/a |
| Red Hat OpenStack Platform 8 (Liberty) | python-crypto | Will not fix | n/a |
| Red Hat OpenStack Platform 9 (Mitaka) | python-crypto | Will not fix | n/a |
| Red Hat Storage 3 | python-crypto | Will not fix | n/a |
| Red Hat Storage Console 2 | python-crypto | Will not fix | n/a |
| Red Hat Virtualization 4 | python-crypto | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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.
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
AV:N/AC:L/Au:N/C:P/I:N/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.03% (0.02031) | 80.34th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.11% (0.02110) | 79.32th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.64% (0.00639) | 68.77th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.33% (0.00331) | 71.93th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.33% (0.00331) | 70.27th | v3 (v2023.03.01) |
| Sep 3, 2023 | 0.33% (0.00331) | 67.38th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.66% (0.00658) | 76.35th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.11% (0.01108) | 55.18th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.11% (0.01108) | 29.61th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.45% (0.01454) | 32.67th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.45% (0.01454) | 0.00th | v1 |
References (13)
- https://access.redhat.com/security/cve/CVE-2018-6594 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1542313 Issue Tracking
- https://github.com/Legrandin/pycryptodome/issues/90
- https://github.com/TElgamal/attack-on-pycrypto-elgamal x_refsource_MISCThird Party Advisory
- https://github.com/advisories/GHSA-6528-wvf6-f6qg Advisory
- https://github.com/dlitz/pycrypto/issues/253 x_refsource_MISCExploitIssue TrackingThird Party Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/pycrypto/PYSEC-2018-97.yaml
- https://lists.debian.org/debian-lts-announce/2018/02/msg00018.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-6594
- https://security.gentoo.org/glsa/202007-62 vendor-advisoryx_refsource_GENTOO
- https://usn.ubuntu.com/3616-1 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3616-2 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-6594
Change history (0)
No recorded changes yet.