Critical Timing Attack Vulnerability in python-rsa Package

python-rsa Updated 02 Oct 2025

Summary

12/11/2020
N/A
No i
Unrated
Not published

DEBIAN-CVE-2020-25658: It was found that python-rsa is vulnerable to Bleichenbacher timing attacks. Affects python-rsa versions 4.0-4 – 4.9-2. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The python-rsa package is a pure Python implementation of the RSA encryption algorithm, widely used for secure data transmission. It provides functionalities for key generation, encryption, and decryption, making it a crucial component in various applications that require secure communications. However, it has been found to be vulnerable to Bleichenbacher timing attacks, which can compromise the security of encrypted data.

Vulnerability Detail

The vulnerability identified as CVE-2020-25658 allows attackers to exploit timing discrepancies in the RSA decryption API of the python-rsa package. By carefully measuring the time it takes to process decryption requests, an attacker can potentially decrypt parts of the ciphertext encrypted with RSA. This flaw poses significant risks, especially in environments where sensitive data is transmitted, as it could lead to unauthorized access to confidential information.

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

As a temporary workaround, consider implementing rate limiting on the RSA decryption API to mitigate the risk of timing attacks. This can help reduce the effectiveness of the attack by making it more difficult for an attacker to gather timing information.

Conclusion

The python-rsa package is vulnerable to a critical timing attack that can compromise the security of encrypted data. It is essential to update the package to the latest version to mitigate this risk. Implementing temporary workarounds can also help protect your application until a full update can be performed.

See every vulnerability recorded for python-rsa →

Share this vulnerability

FAQ

CVE-2020-25658 is a vulnerability in the python-rsa package that allows attackers to exploit timing discrepancies in the RSA decryption process.

If your application uses the python-rsa package for encryption, it may be susceptible to timing attacks that could lead to unauthorized decryption of sensitive data.

If an immediate update is not possible, consider implementing rate limiting on the decryption API as a temporary measure to reduce the risk of exploitation.

Detailed information about CVE-2020-25658 can be found in the Debian security advisory and various cybersecurity databases.

You can use Vulert, which monitors open-source vulnerabilities in your software by analyzing a manifest file like package-lock.json. Visit https://vulert.com for more details.

Related vulnerabilities

Recent vulnerabilities recorded for python-rsa.

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