The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-25658

CVE-2020-25658: Python-rsa Timing Attack Vulnerability

CVE-2020-25658 is a Bleichenbacher timing attack flaw in Python-rsa that enables attackers to decrypt RSA-encrypted cipher text. This article covers technical details, affected versions, security impact, and mitigation.

Published: March 4, 2026

CVE-2020-25658 Overview

CVE-2020-25658 is a timing attack vulnerability discovered in the python-rsa library. The flaw exposes the RSA decryption API to Bleichenbacher timing attacks, allowing attackers to decrypt portions of cipher text encrypted with RSA by analyzing timing variations during decryption operations.

Critical Impact

Attackers can exploit timing side-channels in the RSA decryption process to recover encrypted data, potentially compromising confidential communications and encrypted secrets in applications using the vulnerable python-rsa library.

Affected Products

  • python-rsa (all versions prior to fix)
  • Red Hat OpenStack Platform 13.0 and 16.0
  • Fedora 33, 34, and 35

Discovery Timeline

  • 2020-11-12 - CVE-2020-25658 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-25658

Vulnerability Analysis

This vulnerability is a classic Bleichenbacher timing attack (also known as a "million message attack") affecting the python-rsa cryptographic library. The weakness stems from non-constant-time operations in the RSA decryption implementation, which leak information through observable timing differences.

When the python-rsa library processes PKCS#1 v1.5 padded ciphertext during decryption, the execution time varies depending on the padding validity and content of the decrypted message. An attacker with network access can submit specially crafted ciphertexts and measure the response times to gradually recover the plaintext of previously encrypted messages.

The vulnerability is classified under CWE-385 (Covert Timing Channel) and CWE-327 (Use of a Broken or Risky Cryptographic Algorithm), highlighting both the timing side-channel issue and the broader cryptographic implementation concerns.

Root Cause

The root cause of this vulnerability lies in the non-constant-time implementation of the RSA decryption routine in python-rsa. During PKCS#1 v1.5 padding validation, the library's execution path differs based on whether the padding is valid or invalid, and how the padding bytes are structured. These conditional branches create measurable timing variations that leak information about the decrypted content.

Specifically, the decryption function does not use constant-time comparison operations for padding validation, nor does it normalize the execution time regardless of padding validity. This allows attackers to distinguish between different decryption outcomes by analyzing response latencies.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Intercepting RSA-encrypted ciphertext from network communications
  2. Submitting modified versions of the ciphertext to a service using the vulnerable python-rsa library
  3. Measuring the precise response times for each decryption attempt
  4. Using statistical analysis of timing variations to progressively recover the original plaintext

The attack complexity is high because it requires collecting many timing samples and performing sophisticated statistical analysis. However, with sufficient network access and patience, an attacker can successfully decrypt portions of RSA-encrypted communications.

The vulnerability mechanism exploits timing variations in padding validation during RSA decryption. When the PKCS#1 v1.5 padding is checked, conditional branches in the code create observable timing differences. An attacker submits crafted ciphertexts and measures response times to distinguish valid from invalid padding, gradually recovering the encrypted plaintext. For technical implementation details, refer to the GitHub Issue #165.

Detection Methods for CVE-2020-25658

Indicators of Compromise

  • Unusually high volume of failed RSA decryption operations from a single source
  • Patterns of decryption requests with systematically modified ciphertext values
  • Network traffic showing repeated connections with precise timing intervals to services using python-rsa

Detection Strategies

  • Monitor application logs for excessive RSA decryption failures or errors from specific IP addresses
  • Implement request rate limiting on APIs that perform RSA decryption operations
  • Use network intrusion detection systems to identify timing attack patterns characterized by regular-interval requests
  • Audit installed Python packages to identify vulnerable python-rsa versions using pip list or dependency scanning tools

Monitoring Recommendations

  • Enable detailed logging for cryptographic operations to capture decryption request patterns
  • Set up alerting for anomalous traffic volumes targeting RSA decryption endpoints
  • Conduct periodic dependency audits to ensure python-rsa and related cryptographic libraries are up to date

How to Mitigate CVE-2020-25658

Immediate Actions Required

  • Upgrade python-rsa to the latest patched version immediately
  • Audit all applications and services for python-rsa dependency usage
  • Consider migrating to alternative RSA implementations that use constant-time operations, such as cryptography library
  • Review network exposure of services performing RSA decryption and restrict access where possible

Patch Information

Users should update the python-rsa library to a version that includes the fix for this timing vulnerability. Check the Red Hat Bug Report and Fedora Package Announcements for distribution-specific patching guidance. For Red Hat OpenStack Platform users, consult Red Hat's security advisories for updated packages.

Workarounds

  • Replace python-rsa with the cryptography library which implements RSA using constant-time operations
  • Avoid using PKCS#1 v1.5 padding for new implementations; prefer OAEP (Optimal Asymmetric Encryption Padding) where possible
  • Implement network-level rate limiting to slow down potential timing attack attempts
  • Restrict network access to RSA decryption services using firewalls or access control lists
bash
# Upgrade python-rsa to latest version
pip install --upgrade rsa

# Check current installed version
pip show rsa

# Alternative: Install cryptography library as replacement
pip install cryptography

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechPython Rsa

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.23%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-385

  • CWE-327
  • Technical References
  • Red Hat Bug Report

  • GitHub Issue #165

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Related CVEs
  • CVE-2020-13757: Python-RSA Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English