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-26939

CVE-2020-26939: Bouncycastle Information Disclosure Flaw

CVE-2020-26939 is an information disclosure vulnerability in Bouncycastle Fips Java API that exposes RSA private exponent data through timing attacks. This article covers technical details, affected versions, and mitigations.

Published: March 4, 2026

CVE-2020-26939 Overview

A timing-based side channel vulnerability exists in Legion of the Bouncy Castle BC before version 1.61 and BC-FJA before version 1.0.1.2. Attackers can obtain sensitive information about RSA private exponents through observable differences in behavior to error inputs in the OAEP (Optimal Asymmetric Encryption Padding) decoding process. This vulnerability occurs in org.bouncycastle.crypto.encodings.OAEPEncoding.

Critical Impact

Sending specially crafted invalid ciphertext that decrypts to a short payload can cause the OAEP Decoder to throw an early exception, potentially leaking information about the private exponent of the RSA private key. This side channel attack could allow attackers to gradually recover cryptographic key material through repeated attempts.

Affected Products

  • Bouncy Castle Legion-of-the-Bouncy-Castle (versions before 1.61)
  • Bouncy Castle FIPS Java API (versions before 1.0.1.2)
  • Applications using the affected OAEPEncoding class for RSA decryption

Discovery Timeline

  • 2020-11-02 - CVE-2020-26939 published to NVD
  • 2025-07-17 - Last updated in NVD database

Technical Details for CVE-2020-26939

Vulnerability Analysis

This vulnerability is classified as CWE-203 (Observable Discrepancy), a type of side channel attack that exploits timing differences in cryptographic operations. The flaw exists in how the Bouncy Castle library handles OAEP padding validation during RSA decryption operations.

When an attacker submits carefully crafted invalid ciphertext that results in a short decrypted payload, the OAEP decoder may throw an exception earlier than expected. This timing difference between valid and invalid ciphertext processing creates an observable side channel that can be measured and analyzed by attackers.

By systematically probing the system with various malformed ciphertexts and analyzing the response timing patterns, attackers can incrementally deduce information about the private RSA exponent. This is a classic oracle attack pattern that exploits implementation details rather than cryptographic weaknesses.

Root Cause

The root cause of this vulnerability lies in the non-constant-time error handling within the OAEPEncoding class. When processing decrypted plaintext, the implementation checks the padding structure and throws exceptions at different points in the execution flow depending on the input characteristics. Specifically, when the decrypted payload is unexpectedly short, an exception is raised earlier in the process than when handling other types of invalid input, creating a measurable timing discrepancy.

Attack Vector

The attack requires network access to a service performing RSA-OAEP decryption using vulnerable Bouncy Castle library versions. An attacker does not need authentication or special privileges to exploit this vulnerability.

The exploitation process involves:

  1. The attacker identifies a service using RSA-OAEP encryption with a vulnerable Bouncy Castle version
  2. The attacker submits numerous carefully crafted invalid ciphertexts to the target service
  3. The attacker measures response times or observes exception behavior for each submission
  4. By analyzing timing patterns across many requests, the attacker correlates specific ciphertext characteristics with response timing
  5. Through statistical analysis of these observations, partial information about the private exponent can be recovered

This attack typically requires a significant number of oracle queries but can be practical against high-availability services that process many decryption requests.

Detection Methods for CVE-2020-26939

Indicators of Compromise

  • Unusual patterns of RSA decryption failures with varying error response times
  • High volume of decryption requests from single sources with systematically varying ciphertext
  • Repeated cryptographic operation failures logged from the org.bouncycastle.crypto.encodings.OAEPEncoding class
  • Statistical anomalies in decryption error rates that suggest probing activity

Detection Strategies

  • Monitor application logs for elevated rates of OAEP decryption exceptions
  • Implement timing analysis on cryptographic endpoints to detect probing patterns
  • Deploy intrusion detection rules to identify repeated malformed ciphertext submissions
  • Review dependency manifests to identify Bouncy Castle library versions in use across applications

Monitoring Recommendations

  • Enable detailed logging for cryptographic operations including timing metrics
  • Set up alerts for abnormal patterns in decryption failure rates
  • Monitor network traffic for high-frequency requests to RSA decryption endpoints
  • Implement rate limiting on cryptographic API endpoints to slow potential oracle attacks

How to Mitigate CVE-2020-26939

Immediate Actions Required

  • Upgrade Bouncy Castle BC to version 1.61 or later
  • Upgrade Bouncy Castle BC-FJA to version 1.0.1.2 or later
  • Audit all applications and services that use Bouncy Castle for RSA-OAEP operations
  • Review dependency trees for transitive dependencies on vulnerable versions

Patch Information

The vulnerability has been addressed in Bouncy Castle BC version 1.61 and BC-FJA version 1.0.1.2. The fix implements constant-time processing for OAEP decoding error paths, eliminating the observable timing differences that enabled the information disclosure. For detailed patch information, refer to the GitHub CVE-2020-26939 Advisory.

Workarounds

  • Implement rate limiting on services that perform RSA decryption to slow potential oracle attacks
  • Add artificial random delays to cryptographic error responses to mask timing variations
  • Monitor and block sources exhibiting suspicious patterns of failed decryption attempts
  • Consider network-level protections to limit exposure of cryptographic services to untrusted clients
bash
# Maven dependency update example
# Update pom.xml to use patched Bouncy Castle versions
# For BC core library:
# <dependency>
#   <groupId>org.bouncycastle</groupId>
#   <artifactId>bcprov-jdk15on</artifactId>
#   <version>1.61</version>
# </dependency>

# Verify installed version
mvn dependency:tree | grep bouncycastle

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechBouncycastle

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability2.44%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-203
  • Technical References
  • Apache Solr Issue Discussion
  • Vendor Resources
  • GitHub CVE-2020-26939 Overview
  • Related CVEs
  • CVE-2020-15522: Bouncy Castle Timing Vulnerability

  • CVE-2023-33202: Bouncy Castle For Java DoS Vulnerability

  • CVE-2020-28052: Bouncycastle Bc-java Auth Bypass Flaw

  • CVE-2023-33201: Bouncy Castle Bc-java LDAP Vulnerability
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