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

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

CVE-2020-28052 is an authentication bypass flaw in Bouncycastle Bc-java that allows incorrect passwords to match previously hashed ones. This post explains its impact, affected versions, and mitigation steps.

Published: March 4, 2026

CVE-2020-28052 Overview

CVE-2020-28052 is an authentication bypass vulnerability discovered in Legion of the Bouncy Castle BC Java versions 1.65 and 1.66. The vulnerability exists in the OpenBSDBCrypt.checkPassword utility method, which compared incorrect data when validating passwords. This flaw allows incorrect passwords to be incorrectly validated as matching previously hashed passwords, effectively bypassing authentication mechanisms that rely on this library for password verification.

Bouncy Castle is one of the most widely used cryptographic libraries in the Java ecosystem, making this vulnerability particularly impactful across enterprise applications, financial systems, and critical infrastructure that depend on its password hashing capabilities.

Critical Impact

Authentication bypass vulnerability allows attackers to authenticate with incorrect passwords, potentially gaining unauthorized access to systems and sensitive data protected by Bouncy Castle's BCrypt implementation.

Affected Products

  • Bouncy Castle BC Java versions 1.65 and 1.66
  • Apache Karaf 4.3.2
  • Oracle Banking Corporate Lending Process Management (14.2.0, 14.3.0, 14.5.0)
  • Oracle Banking Credit Facilities Process Management (14.2.0, 14.3.0, 14.5.0)
  • Oracle Banking Extensibility Workbench (14.2.0, 14.3.0, 14.5.0)
  • Oracle Banking Supply Chain Finance (14.2.0, 14.3.0, 14.5.0)
  • Oracle Banking Virtual Account Management (14.2.0, 14.3.0, 14.5.0)
  • Oracle Blockchain Platform
  • Oracle Commerce Guided Search 11.3.2
  • Oracle Communications Application Session Controller 3.9m0p3
  • Oracle Communications Cloud Native Core Network Slice Selection Function 1.2.1
  • Oracle Communications Convergence 3.0.2.2.0
  • Oracle Communications Pricing Design Center 12.0.0.3.0
  • Oracle Communications Session Report Manager
  • Oracle Communications Session Route Manager
  • Oracle JD Edwards EnterpriseOne Tools
  • Oracle PeopleSoft Enterprise PeopleTools (8.56, 8.57, 8.58)
  • Oracle Utilities Framework (4.3.0.6.0, 4.4.0.0.0, 4.4.0.2.0, 4.4.0.3.0)
  • Oracle WebCenter Portal (11.1.1.9.0, 12.2.1.3.0, 12.2.1.4.0)
  • Oracle Communications Messaging Server (8.0.2, 8.1)

Discovery Timeline

  • December 18, 2020 - CVE-2020-28052 published to NVD
  • May 12, 2025 - Last updated in NVD database

Technical Details for CVE-2020-28052

Vulnerability Analysis

This vulnerability represents an authentication bypass flaw in the Bouncy Castle cryptographic library's OpenBSD-style BCrypt implementation. The OpenBSDBCrypt.checkPassword method contains a logic error in how it compares the computed password hash against the stored hash value.

When a user attempts to authenticate, the method is supposed to hash the provided password using the same salt and parameters as the original hash, then compare the result byte-by-byte with the stored hash. However, due to the comparison bug, the method can incorrectly return true for passwords that don't actually match the original hashed password.

The vulnerability is particularly concerning because BCrypt is specifically designed as a secure password hashing algorithm meant to protect authentication systems. Applications using the affected Bouncy Castle versions for user authentication, session management, or credential storage may be susceptible to unauthorized access.

Root Cause

The root cause of CVE-2020-28052 lies in the flawed comparison logic within the OpenBSDBCrypt.checkPassword method. The implementation compared incorrect portions of data when validating the password hash, leading to scenarios where the comparison would succeed even when the provided password was wrong.

Specifically, the method failed to properly align the data being compared, resulting in a mismatch between what was intended to be compared (the full hash output) and what was actually compared. This type of implementation error in cryptographic code can have severe security implications, as the entire security model depends on correct byte-level comparisons.

Attack Vector

The attack vector for this vulnerability is network-based, requiring no user interaction or special privileges. An attacker can exploit this vulnerability by:

  1. Identifying an application that uses Bouncy Castle versions 1.65 or 1.66 for password authentication
  2. Attempting authentication with various incorrect passwords
  3. Due to the comparison bug, certain incorrect passwords may be accepted as valid
  4. Once authenticated, the attacker gains unauthorized access to the target system

The exploitation complexity is considered high because successful exploitation depends on specific conditions being met in the hash comparison process. However, the impact upon successful exploitation is severe, potentially compromising confidentiality, integrity, and availability of affected systems.

The vulnerability does not require the attacker to have prior knowledge of the actual password. Instead, the bug in the comparison logic creates conditions where authentication can succeed without providing the correct credentials.

Detection Methods for CVE-2020-28052

Indicators of Compromise

  • Unusual successful authentication events from unexpected sources or at unusual times
  • Multiple accounts experiencing authentication anomalies simultaneously
  • Log entries showing successful logins that don't correlate with expected user behavior
  • Authentication audit trails showing access patterns inconsistent with legitimate user activity

Detection Strategies

  • Implement software composition analysis (SCA) to identify Bouncy Castle versions 1.65 and 1.66 in your dependency tree
  • Monitor authentication logs for anomalous successful login patterns
  • Deploy runtime application self-protection (RASP) to detect suspicious authentication behavior
  • Conduct periodic security audits of Java applications using BCrypt password hashing

Monitoring Recommendations

  • Enable detailed authentication logging for all applications using Bouncy Castle for password validation
  • Implement behavioral analytics to detect authentication anomalies that may indicate exploitation
  • Monitor dependency management tools for alerts related to vulnerable Bouncy Castle versions
  • Set up alerts for unexpected access to sensitive resources following authentication events

How to Mitigate CVE-2020-28052

Immediate Actions Required

  • Upgrade Bouncy Castle BC Java to version 1.67 or later immediately
  • Audit all applications and dependencies for vulnerable Bouncy Castle versions
  • Review authentication logs for potential past exploitation attempts
  • Consider forcing password resets for sensitive accounts as a precautionary measure
  • Implement additional authentication factors (MFA) to reduce single-point-of-failure risk

Patch Information

The vulnerability has been fixed in Bouncy Castle BC Java version 1.67 and later. Organizations should upgrade to the latest stable version of Bouncy Castle to address this vulnerability. Multiple vendor advisories have been released:

  • Bouncy Castle GitHub CVE-2020-28052 Details
  • Bouncy Castle Release Notes
  • Oracle CPU April 2021
  • Oracle CPU July 2021
  • Oracle CPU October 2021
  • Oracle CPU January 2022
  • Oracle CPU April 2022
  • Oracle CPU July 2022

For Apache Karaf users, upgrade to a version that includes the patched Bouncy Castle dependency.

Workarounds

  • If immediate upgrade is not possible, consider implementing additional authentication validation layers
  • Use alternative password hashing methods temporarily while preparing for the upgrade
  • Implement IP-based access restrictions to limit potential attack surface
  • Deploy additional monitoring and alerting for authentication events
  • Consider using a Web Application Firewall (WAF) with behavioral analysis capabilities
bash
# Maven dependency update example
# Update pom.xml to use patched Bouncy Castle version
# Replace:
#   <dependency>
#     <groupId>org.bouncycastle</groupId>
#     <artifactId>bcprov-jdk15on</artifactId>
#     <version>1.65</version>
#   </dependency>
# With:
#   <dependency>
#     <groupId>org.bouncycastle</groupId>
#     <artifactId>bcprov-jdk15on</artifactId>
#     <version>1.70</version>
#   </dependency>

# Verify no vulnerable versions remain in dependency tree
mvn dependency:tree | grep -i bouncycastle

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechBouncycastle

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability3.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-Other
  • Technical References
  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Apache Thread Discussion

  • Oracle CPU October 2021
  • Vendor Resources
  • GitHub CVE-2020-28052 Details

  • Apache Thread Discussion

  • Bouncy Castle Release Notes

  • Oracle CPU July 2021

  • Oracle CPU April 2021

  • Oracle CPU April 2022

  • Oracle CPU January 2022

  • Oracle CPU July 2022
  • Related CVEs
  • CVE-2023-33202: Bouncy Castle For Java DoS Vulnerability

  • CVE-2020-26939: Bouncycastle Information Disclosure Flaw

  • CVE-2020-15522: Bouncy Castle Timing Vulnerability

  • 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