Vulnerability in python-crypto - security update

python-crypto Updated 02 Oct 2025

Summary

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

DLA-773-1: python-crypto - security update. Affects python-crypto versions < 2.6-4+deb7u4. Fixed in 2.6-4+deb7u4. 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 of the Python interpreter when an invalid parameter is passed to the AES.new function.

Vulnerability Detail

The vulnerability in python-crypto arises from a flaw in the AES.new function. When an invalid parameter is provided, it triggers a crash in the Python interpreter. This crash can potentially be exploited by an attacker to disrupt the functioning of a Python application that relies on python-crypto. The impact of this vulnerability can range from denial of service to potential code execution, depending on the context in which python-crypto is used.

How To Fix

Minimum fixed version

2.6-4+deb7u4

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 available for this vulnerability. However, users can mitigate the risk by ensuring that untrusted inputs are properly validated before being passed to the AES.new function in python-crypto.

Conclusion

The vulnerability in python-crypto can lead to a crash of the Python interpreter and potentially allow for code execution. To mitigate this risk, it is crucial to upgrade to the fixed version of python-crypto (2.6-4+deb7u4 or later). Users should also ensure that untrusted inputs are properly validated to minimize the impact of this vulnerability. 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 cryptographic operations in Python. It provides various algorithms and protocols for encryption, decryption, and other cryptographic tasks.

The vulnerability can lead to a crash of the Python interpreter when an invalid parameter is passed to the AES.new function. This can disrupt the functioning of applications that rely on python-crypto and potentially allow for code execution in certain scenarios.

There is no information available regarding active exploitation of this vulnerability in the wild. However, it is recommended to apply the security update to mitigate any potential risks.

No, only versions prior to 2.6-4+deb7u4 of python-crypto are affected. Users should upgrade to the fixed version to ensure their systems are protected.

For more information about the security update and the specific fixes included, users can refer to the Debian Security Advisory DLA-773-1.

Related vulnerabilities

Recent vulnerabilities recorded for python-crypto.

How To Fix

Minimum fixed version

2.6-4+deb7u4

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.