Vulnerability in python-crypto: AES.new Parameter Crash

python-crypto Updated 02 Oct 2025

Summary

05/01/2017
N/A
Yes i
Unrated
Not published

DLA-773-3: python-crypto - regression update. Affects python-crypto versions < 2.6-4+deb7u6. Fixed in 2.6-4+deb7u6. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

python-crypto is a library of cryptographic algorithms and protocols for Python. It provides various functionalities for encryption, decryption, and other cryptographic operations. This vulnerability affects the AES.new function in python-crypto, which is used for creating AES cipher objects. The vulnerability allows an attacker to crash the Python interpreter by providing an invalid parameter to AES.new.

Vulnerability Detail

The vulnerability in python-crypto arises when an invalid parameter is passed to the AES.new function. This can lead to a crash of the Python interpreter, potentially disrupting the execution of the program. The impact of this vulnerability depends on the context in which python-crypto is used. If python-crypto is used in a critical system or application, the crash caused by the vulnerability could result in denial of service or other adverse effects. It is important to note that this vulnerability does not directly lead to unauthorized access or data leakage.

How To Fix

Minimum fixed version

2.6-4+deb7u6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-crypto

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended solution is to upgrade the python-crypto package to the fixed version.

Conclusion

In conclusion, the vulnerability in python-crypto allows an attacker to crash the Python interpreter by providing an invalid parameter to the AES.new function. To mitigate this vulnerability, it is crucial to upgrade the python-crypto package to version 2.6-4+deb7u4 or later. This will ensure the stability and security of the Python programs using python-crypto. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for python-crypto →

Share this vulnerability

FAQ

python-crypto is a library of cryptographic algorithms and protocols for Python. It provides functionalities for encryption, decryption, and other cryptographic operations.

The vulnerability allows an attacker to crash the Python interpreter by providing an invalid parameter to the AES.new function. The impact depends on the context in which python-crypto is used, but it could result in denial of service or other adverse effects.

To fix this vulnerability, it is recommended to upgrade the python-crypto package to version 2.6-4+deb7u4 or later. This can be done by updating the package using the package manager of the operating system.

No, this vulnerability does not directly lead to unauthorized access or data leakage. It primarily causes a crash of the Python interpreter.

For more information about this vulnerability, you can refer to the Debian Security Advisory DLA-773-3.

Related vulnerabilities

Recent vulnerabilities recorded for python-crypto.

How To Fix

Minimum fixed version

2.6-4+deb7u6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-crypto

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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