PyCrypto: Execution of arbitrary code

Security Team  Contact Address

Updated March 09, 2009

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200903-11 / pycrypto
Release Date March 09, 2009
Latest Revision March 09, 2009: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
dev-python/pycrypto < 2.0.1-r8 >= 2.0.1-r8 All supported architectures

Related bugreports: #258049

Synopsis

A buffer overflow in PyCrypto might lead to the execution of arbitrary code when decrypting using ARC2.

2.  Impact Information

Background

PyCrypto is the Python Cryptography Toolkit.

Description

Mike Wiacek of the Google Security Team reported a buffer overflow in the ARC2 module when processing a large ARC2 key length.

Impact

A remote attacker could entice a user or automated system to decrypt an ARC2 stream in an application using PyCrypto, possibly resulting in the execution of arbitrary code or a Denial of Service.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All PyCrypto users should upgrade to the latest version:

Code Listing 3.1: Resolution

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

4.  References