Advisory

PYSEC-2012-16

Also known as: CVE-2012-2417, GHSA-v367-p58w-98h5

Summary

The record has no summary.

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

Not rated by the source.

Dates

Published
2012-06-17 03:41 UTC
Modified
2026-06-10 17:02 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: PyPA Advisory Database · CC BY 4.0

Sources & licences