# CVE-2013-7459: Buffer Overflow in pycrypto

Source: https://junglewise.ai/threats/cve-2013-7459-buffer-overflow-in-pycrypto  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2017-02-15  
License: CC BY 4.0 with a link back

CVE-2013-7459 · Severity: low · CVSS 3 · Published 2017-02-15

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.

Technologies: [pycrypto (PyPI)](https://junglewise.ai/threats/technologies/pypi-pycrypto). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2013-7459 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2013-7459 being exploited in the wild.

**How severe is CVE-2013-7459?** Low severity, with a CVSS score of 3, published 15 February 2017.

**Which products and versions are affected?** pycrypto (PyPI) ECOSYSTEM:introduced=0,last_affected=2.6.1, GIT:introduced=0,fixed=8dbe0dc3eea5c689d4f76b37b93fe216cf1f00d4|ECOSYSTEM:introduced=0.

**Is there a fix for CVE-2013-7459?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2013-7459?** Check whether you run pycrypto (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- pycrypto (PyPI) ECOSYSTEM:introduced=0,last_affected=2.6.1, GIT:introduced=0,fixed=8dbe0dc3eea5c689d4f76b37b93fe216cf1f00d4|ECOSYSTEM:introduced=0

## Identifiers

- CVE-2013-7459
- GHSA-cq27-v7xp-c356
- PYSEC-2017-94

## Related threats

- [Pycrypto generates weak key parameters](https://junglewise.ai/threats/cve-2018-6594-pycrypto-generates-weak-key-parameters)
- [PyCrypto does not properly reseed PRNG before allowing access](https://junglewise.ai/threats/cve-2013-1445-pycrypto-does-not-properly-reseed-prng-before-allowing-access)
- [PyCrypto makes Use of Insufficiently Random Values](https://junglewise.ai/threats/cve-2012-2417-pycrypto-makes-use-of-insufficiently-random-values)
