CVE-2013-7459 Buffer Overflow in pycrypto

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code via a heap-based buffer overflow in the Python Cryptography Toolkit's ALGnew function.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2013-7459?

CVE-2013-7459 is a critical memory corruption vulnerability in Fedoraproject Fedora, published on 15 Feb 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Heap-based buffer overflow in the ALGnew function in block_templace.c in Python Cryptography Toolkit (aka pycrypto) allows remote attackers to execute arbitrary code as demonstrated by a crafted iv parameter to cryptmsg.py.

Weakness: CWE-119

Which versions are affected by CVE-2013-7459?

3 open source packages ship an affected version, including pycrypto. It affects 2 products.

PackageAffectedFixed in
pycrypto PyPIAll versionsNone
pycrypto PyPIAll versions to 2.6.1None
pycrypto PyPIAll versions to 2.6.1None
Linux distribution packages (18)
python-paramiko SUSE:Enterprise Storage 3All versions1.15.2-2.3.1
python-pycrypto SUSE:Enterprise Storage 3All versions2.6.1-10.3.1
python-pycrypto SUSE:Enterprise Storage 4All versions2.6.1-10.3.1
python-pycrypto SUSE:Linux Enterprise Module for Advanced Systems Management 12All versions2.6.1-10.3.1
python-paramiko SUSE:Linux Enterprise Module for Public Cloud 12All versions1.15.2-2.6.1
python-pycrypto SUSE:Linux Enterprise Module for Public Cloud 12All versions2.6.1-10.3.1
python-pycrypto SUSE:Linux Enterprise Module for Web and Scripting 12All versions2.6.1-10.3.1
python-pycrypto SUSE:Linux Enterprise Point of Sale 12 SP2All versions2.6.1-10.3.1
python-pycrypto SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSAll versions2.6.1-5.1
python-pycrypto SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLSAll versions2.6.1-5.1
python-pycrypto SUSE:Manager Client Tools 12All versions2.6.1-10.3.1
python-pycrypto SUSE:Manager Proxy 3.0All versions2.6.1-10.3.1
python-pycrypto SUSE:Manager Proxy 3.1All versions2.6.1-10.3.1
python-pycrypto SUSE:Manager Server 3.0All versions2.6.1-10.3.1
python-pycrypto SUSE:Manager Server 3.1All versions2.6.1-10.3.1
python-paramiko SUSE:OpenStack Cloud 6All versions1.15.2-2.3.1
python-pycrypto SUSE:OpenStack Cloud 6All versions2.6.1-10.3.1
python-pycrypto SUSE:OpenStack Cloud 7All versions2.6.1-10.3.1

Products include Dlitz Pycrypto, Fedoraproject Fedora.

How do I fix CVE-2013-7459?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2013-7459 being exploited?

There is no known exploitation of CVE-2013-7459 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DLA-773-1, GHSA-cq27-v7xp-c356, MGASA-2017-0032, PYSEC-2017-94, SUSE-SU-2017:1744-1, SUSE-SU-2017:2350-1 and 3 more.

Is CVE-2013-7459 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free