GHSA-6528-wvf6-f6qg

Pycrypto generates weak key parameters

At a glance

Published
Updated
CVE
CVE-2018-6594
Aliases
PYSEC-2018-97
CVSS_V3
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS_V4
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

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 packages

PackageVersions
PyPI · pycryptointroduced 0, last affected 2.6.1

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database