PyCrypto: Weak key generation — GLSA 201206-23

PyCrypto generates weak ElGamal keys.

Affected packages

dev-python/pycrypto on all architectures
Affected versions < 2.6
Unaffected versions >= 2.6

Background

PyCrypto is the Python Cryptography Toolkit.

Description

An error in the generate() function in ElGamal.py causes PyCrypto to generate weak ElGamal keys.

Impact

A remote attacker might be able to derive private keys.

Workaround

There is no known workaround at this time.

Resolution

All PyCrypto users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-python/pycrypto-2.6"
 

References

Release date
June 24, 2012

Latest revision
June 24, 2012: 1

Severity
normal

Exploitable
remote

Bugzilla entries