PyCrypto: Remote execution of arbitrary code — GLSA 201702-14

A heap-based buffer overflow in PyCrypto might allow remote attackers to execute arbitrary code.

Affected Packages

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

Background

The Python Cryptography Toolkit (PyCrypto) is a collection of both secure hash functions (such as SHA256 and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal, etc.).

Description

A heap-based buffer overflow vulnerability has been discovered in PyCrypto. Please review the CVE identifier referenced below for details.

Impact

A remote attacker, able to control the mode of operation in PyCrypto’s AES module, could possibly execute arbitrary code with the privileges of the process or cause a Denial of Service condition.

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.1-r2"
 

References

Release Date
February 20, 2017

Latest Revision
February 20, 2017: 1

Severity
normal

Exploitable
remote

Bugzilla entries