Advisory

GHSA-v367-p58w-98h5

Also known as: CVE-2012-2417, PYSEC-2012-16

Summary

PyCrypto makes Use of Insufficiently Random Values

Details

PyCrypto before 2.6 does not produce appropriate prime numbers when using an ElGamal scheme to generate a key, which reduces the signature space or public key space and makes it easier for attackers to conduct brute force attacks to obtain the private key.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-17 01:46 UTC
Modified
2024-12-01 05:48 UTC

Affected packages and fixes

pycrypto

PyPI · All systems

Affected

  • introduced 0, fixed 2.6 (ecosystem)

Fixed versions

2.6

Fix

  • Fixed version 2.6
    pip install --upgrade pycrypto==2.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences