Skip to content
OpenAdvisories
High · 7.5 CVE-2018-6594 EUVD-2018-0119GHSA-6528-wvf6-f6qgPYSEC-2018-97

Pycrypto generates weak key parameters

Published Feb 3, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pycryptodome 3.4.11-1 —
Debian 13 pycryptodome 3.4.11-1 —
Debian 12 pycryptodome 3.4.11-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS pycryptodome 3.4.7-1ubuntu1 —
Ubuntu 18.04 LTS python-crypto 2.6.1-8ubuntu2 —
Ubuntu 16.04 LTS python-crypto 2.6.1-6ubuntu0.16.04.3 USN-3616-1
Ubuntu 14.04 LTS python-crypto 2.6.1-4ubuntu0.3 USN-3616-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-crypto 2.6.1-34.amzn2023.0.2 ALAS2023-2025-1051

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pycrypto <= 2.6.1 — GHSA-6528-wvf6-f6qg
PyPI pycrypto all versions — PYSEC-2018-97

Advisories 3

References