CVE-2013-7459: Buffer Overflow in pycrypto

pycrypto Updated 02 Oct 2025

Summary

14/12/2018
No i
Critical
9.8

CVE-2013-7459: Buffer Overflow in pycrypto. Affects pycrypto versions < 2.6.1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Python Cryptography Toolkit (pycrypto) is an open-source library that provides cryptographic services such as encryption, decryption, and hashing. It is widely used in Python applications for secure data transmission and storage. However, pycrypto versions up to 2.6.1 are vulnerable to a heap-based buffer overflow in the ALGnew function in block_templace.c. This vulnerability allows remote attackers to execute arbitrary code by exploiting a crafted iv parameter in the cryptmsg.py module.

Vulnerability Detail

The vulnerability arises from a heap-based buffer overflow in the ALGnew function of pycrypto. By sending a specially crafted iv parameter to the cryptmsg.py module, an attacker can trigger the buffer overflow and execute arbitrary code on the target system. This can lead to a complete compromise of the system, allowing the attacker to gain unauthorized access, steal sensitive information, or perform other malicious activities. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by upgrading to a patched version of pycrypto.

Conclusion

The buffer overflow vulnerability in pycrypto can lead to remote code execution and compromise of the target system. It is crucial to upgrade to a patched version of pycrypto (higher than 2.6.1) to mitigate this vulnerability. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pycrypto →

Share this vulnerability

FAQ

PyCrypto is a Python library that provides cryptographic services such as encryption, decryption, and hashing.

This vulnerability allows remote attackers to execute arbitrary code on the target system, potentially leading to unauthorized access, data theft, or other malicious activities.

To fix this vulnerability, upgrade your pycrypto package to a version higher than 2.6.1 using the command 'pip install --upgrade pycrypto'.

No, there is no known workaround for this vulnerability. It is crucial to apply the recommended fix by upgrading to a patched version of pycrypto.

This vulnerability is rated as CRITICAL with a CVSS score of 9.8.

Related vulnerabilities

Recent vulnerabilities recorded for pycrypto.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback