Vulnerability in python-crypto: Calling AES.new with an invalid parameter can crash the Python interpreter

python-crypto Updated 02 Oct 2025

Summary

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

DLA-773-4: python-crypto - update. Affects python-crypto versions < 2.6-4+deb7u7. Fixed in 2.6-4+deb7u7. 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 functionality for encryption, decryption, and other cryptographic operations. The library is widely used in various applications that require secure communication and data protection. However, a vulnerability has been discovered in python-crypto that can lead to a crash in the Python interpreter when AES.new is called with an invalid parameter.

Vulnerability Detail

The vulnerability in python-crypto arises when AES.new is invoked with an invalid parameter. This can cause the Python interpreter to crash, resulting in a denial of service (DoS) condition. An attacker can potentially exploit this vulnerability by providing malicious input to trigger the crash. The impact of this vulnerability is limited to the availability of the affected Python interpreter. It does not directly lead to unauthorized access or data compromise.

How To Fix

Minimum fixed version

2.6-4+deb7u7

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 provided for this vulnerability. However, users can mitigate the risk by ensuring that only trusted input is passed to the AES.new function in python-crypto. Input validation and sanitization can help prevent the use of invalid parameters that trigger the crash.

Conclusion

In conclusion, the python-crypto library is vulnerable to a crash in the Python interpreter when an invalid parameter is passed to AES.new. This vulnerability can be mitigated by upgrading to the latest version of the python-crypto package. Input validation and sanitization can also help reduce the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for python-crypto →

Share this vulnerability

FAQ

python-crypto is a library for Python that provides cryptographic algorithms and protocols for various security operations.

The vulnerability can cause a crash in the Python interpreter, resulting in a denial of service (DoS) condition. It does not directly lead to unauthorized access or data compromise.

To fix this vulnerability, upgrade the python-crypto package to version 2.6-4+deb7u4 or later.

There is no specific workaround provided, but input validation and sanitization can help mitigate the risk.

The updated python-crypto package can be obtained from the official Debian repository or through package management tools.

Related vulnerabilities

Recent vulnerabilities recorded for python-crypto.

How To Fix

Minimum fixed version

2.6-4+deb7u7

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