Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-13757

CVE-2020-13757: Python-RSA Information Disclosure Flaw

CVE-2020-13757 is an information disclosure vulnerability in Python-RSA before version 4.1 that ignores leading null bytes during decryption. This article covers technical details, affected versions, impact, and mitigation.

Published: March 4, 2026

CVE-2020-13757 Overview

CVE-2020-13757 is a cryptographic vulnerability in Python-RSA before version 4.1 where the library ignores leading \0 bytes during decryption of ciphertext. This improper handling of null bytes during cryptographic operations could allow attackers to infer information about the application's RSA implementation, potentially leading to information disclosure. The vulnerability is classified under CWE-327 (Use of a Broken or Risky Cryptographic Algorithm).

Critical Impact

Attackers can exploit this vulnerability to fingerprint applications using Python-RSA or potentially cause excessive memory allocation if application behavior depends on ciphertext length, leading to information disclosure or denial of service conditions.

Affected Products

  • Python-RSA versions before 4.1
  • Fedora 31 and 32
  • Canonical Ubuntu Linux 14.04 ESM

Discovery Timeline

  • 2020-06-01 - CVE-2020-13757 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-13757

Vulnerability Analysis

The vulnerability exists in Python-RSA's decryption routine, which improperly handles leading null bytes (\0) in ciphertext. When decrypting RSA-encrypted data, the library strips these leading null bytes instead of treating them as significant parts of the ciphertext. This behavior deviates from proper cryptographic handling where all bytes in the ciphertext should be considered meaningful.

The issue can have multiple security-relevant impacts. First, it enables application fingerprinting—an attacker observing how an application handles specially crafted ciphertext with leading null bytes can determine whether the target uses Python-RSA. Second, if the application's behavior depends on the length of accepted ciphertext (such as memory allocation decisions), an attacker could manipulate this to cause unexpected behavior or resource consumption.

This vulnerability represents an information disclosure risk because the differing behavior when processing null-byte prefixed ciphertext creates a detectable oracle that reveals implementation details.

Root Cause

The root cause lies in the decryption implementation's failure to properly validate and preserve the full length of incoming ciphertext. During the byte conversion process from the decrypted integer back to bytes, the code does not account for the significance of leading zero bytes in cryptographic contexts. This is a common implementation oversight in cryptographic libraries where integer-to-bytes conversions naturally strip leading zeros that would be mathematically insignificant but are cryptographically important.

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by sending specially crafted ciphertext with leading null bytes to an application using vulnerable versions of Python-RSA. By observing the application's response—whether through timing differences, error messages, or behavioral changes—the attacker can gather information about the underlying RSA implementation or potentially trigger unintended application states.

The exploitation scenario involves:

  1. Crafting ciphertext with strategically placed leading \0 bytes
  2. Sending the malformed ciphertext to the target application
  3. Analyzing the response to infer implementation details or trigger memory-related behaviors
  4. Using gathered information for further targeted attacks or to identify vulnerable systems at scale

Detection Methods for CVE-2020-13757

Indicators of Compromise

  • Unusual patterns of RSA decryption requests containing ciphertext with leading null bytes
  • Unexpected memory allocation patterns in applications performing RSA decryption
  • Application logs showing processing of malformed or unusual ciphertext inputs
  • Network traffic containing systematically varied ciphertext payloads indicative of probing attempts

Detection Strategies

  • Monitor application dependencies for Python-RSA versions prior to 4.1 using software composition analysis (SCA) tools
  • Implement input validation logging to detect ciphertext with unusual leading byte patterns
  • Deploy application performance monitoring to identify anomalous memory consumption during cryptographic operations
  • Use runtime application self-protection (RASP) to detect exploitation attempts targeting RSA decryption functions

Monitoring Recommendations

  • Enable detailed logging for cryptographic operations, particularly RSA decryption failures or anomalies
  • Implement alerting on repeated decryption attempts with similar but slightly varied ciphertext from the same source
  • Monitor for fingerprinting reconnaissance patterns that may precede exploitation attempts
  • Track dependency versions across all Python applications to ensure timely identification of vulnerable installations

How to Mitigate CVE-2020-13757

Immediate Actions Required

  • Upgrade Python-RSA to version 4.1 or later immediately across all affected systems
  • Audit all applications and services that depend on Python-RSA for cryptographic operations
  • Review application logs for any suspicious decryption activity that may indicate prior exploitation attempts
  • Update operating system packages on affected Fedora and Ubuntu systems using the official security updates

Patch Information

The vulnerability has been addressed in Python-RSA version 4.1. Security advisories have been released by multiple distributions including Fedora (package announcements for Fedora 31 and 32) and Ubuntu (Security Notice USN-4478-1). Detailed technical discussion of the vulnerability and fix can be found in the GitHub Issue #146 on the python-rsa repository.

Workarounds

  • If immediate patching is not possible, implement additional input validation to reject ciphertext with unexpected leading null bytes
  • Consider using alternative RSA libraries with proper null byte handling until the upgrade can be completed
  • Implement application-level monitoring to detect and block potential exploitation attempts
  • Isolate applications using vulnerable Python-RSA versions from direct network exposure where feasible
bash
# Upgrade Python-RSA to patched version
pip install --upgrade 'rsa>=4.1'

# Verify installed version
pip show rsa | grep Version

# For system packages on Ubuntu
sudo apt-get update && sudo apt-get install python3-rsa

# For Fedora systems
sudo dnf update python-rsa

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

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-327
  • Technical References
  • GitHub Issue Discussion

  • GitHub Comment on Issue

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Ubuntu Security Notice USN-4478-1
  • Related CVEs
  • CVE-2020-25658: Python-rsa Timing Attack Vulnerability
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