Advisory

GHSA-x377-f64p-hf5j

Also known as: CVE-2013-1445, PYSEC-2013-29

Summary

PyCrypto does not properly reseed PRNG before allowing access

Details

The Crypto.Random.atfork function in PyCrypto before 2.6.1 does not properly reseed the pseudo-random number generator (PRNG) before allowing a child process to access it, which makes it easier for context-dependent attackers to obtain sensitive information by leveraging a race condition in which a child process is created and accesses the PRNG within the same rate-limit period as another process.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-17 04:59 UTC
Modified
2024-10-21 20:52 UTC

Affected packages and fixes

pycrypto

PyPI · All systems

Affected

  • introduced 0, fixed 2.6.1 (ecosystem)

Fixed versions

2.6.1

Fix

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

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