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-2024-30171

CVE-2024-30171: Bouncy Castle TLS Timing Vulnerability

CVE-2024-30171 is a timing-based information disclosure vulnerability in Bouncy Castle Java TLS API and JSSE Provider that affects RSA handshakes. This article covers the technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-30171 Overview

CVE-2024-30171 is a timing-based side channel vulnerability discovered in Bouncy Castle Java TLS API and JSSE Provider before version 1.78. The vulnerability exists in RSA-based TLS handshakes where exception processing can leak timing information, potentially enabling attackers to recover sensitive cryptographic material through careful measurement of response times.

Critical Impact

Attackers can exploit timing differences in RSA exception handling during TLS handshakes to potentially recover private key material or decrypt session traffic through side channel analysis.

Affected Products

  • Bouncy Castle Java TLS API versions before 1.78
  • Bouncy Castle JSSE Provider versions before 1.78
  • Bouncy Castle C# implementations (bc-csharp)

Discovery Timeline

  • May 14, 2024 - CVE-2024-30171 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2024-30171

Vulnerability Analysis

This vulnerability falls under the category of Timing Attack (CWE-203: Observable Discrepancy), a cryptographic side channel vulnerability. The issue stems from non-constant-time exception processing in the RSA decryption path during TLS handshakes. When processing RSA-encrypted premaster secrets, the Bouncy Castle library exhibits measurable timing differences based on the validity of the padding or other cryptographic operations.

Timing attacks against RSA implementations have a long history, with the most notable being the Bleichenbacher attack and its variants. CVE-2024-30171 represents a similar class of vulnerability where an attacker positioned on the network can send malformed ciphertext and measure response times to gradually recover the plaintext or private key information.

The attack requires network access and involves high complexity as the attacker must be able to accurately measure timing differences and send multiple carefully crafted requests. While no user interaction is required, the confidentiality impact is significant as successful exploitation could compromise encrypted communications.

Root Cause

The root cause lies in the exception handling logic within Bouncy Castle's RSA decryption implementation used during TLS handshakes. When processing RSA PKCS#1 v1.5 padding or similar operations, different error conditions trigger different code paths with varying execution times. These timing discrepancies, though potentially small, can be measured and exploited by an attacker capable of performing many handshake attempts.

Proper cryptographic implementations must ensure constant-time execution regardless of input validity to prevent timing-based information leakage. The vulnerable versions of Bouncy Castle failed to adequately mask these timing differences during exception processing.

Attack Vector

The attack vector is network-based, requiring the attacker to be able to initiate or intercept TLS handshakes with a vulnerable server or client using Bouncy Castle. The attacker would typically:

  1. Establish multiple TLS connections with the target
  2. Send carefully crafted RSA-encrypted premaster secrets with intentional padding errors
  3. Measure the response timing for each attempt with high precision
  4. Use statistical analysis to correlate timing variations with specific cryptographic states
  5. Gradually recover the private key material or decrypt captured session traffic

This type of attack is particularly concerning for long-term exposure as attackers can passively collect encrypted traffic and later perform the timing attack to recover session keys.

Detection Methods for CVE-2024-30171

Indicators of Compromise

  • Unusually high volume of failed TLS handshakes from specific source IPs
  • Repeated connection attempts with malformed RSA ciphertext in ClientKeyExchange messages
  • Pattern of connections with precise timing intervals suggesting automated attack tooling
  • TLS error logs showing RSA decryption failures at rates above normal baseline

Detection Strategies

  • Implement TLS handshake failure rate monitoring and alerting for anomalous patterns
  • Deploy network intrusion detection systems with signatures for Bleichenbacher-style attack patterns
  • Monitor Java application logs for Bouncy Castle exception traces related to RSA operations
  • Use packet capture analysis to identify suspicious patterns in TLS handshake timing

Monitoring Recommendations

  • Establish baseline metrics for TLS handshake failure rates and timing distributions
  • Configure SIEM rules to correlate multiple failed handshakes from single sources
  • Enable verbose logging for TLS operations during incident investigation periods
  • Monitor for reconnaissance activity targeting TLS endpoints

How to Mitigate CVE-2024-30171

Immediate Actions Required

  • Upgrade Bouncy Castle Java library to version 1.78 or later immediately
  • Audit all applications and dependencies for Bouncy Castle usage
  • Consider disabling RSA key exchange in favor of ECDHE where possible
  • Review TLS configurations to ensure modern cipher suites are prioritized

Patch Information

The vulnerability has been addressed in Bouncy Castle version 1.78. Organizations should update their dependencies as follows:

For Maven-based projects, update your pom.xml to reference bcprov-jdk18on:1.78 or later. For Gradle projects, update the dependency declaration accordingly. The Bouncy Castle Latest Releases page provides the current versions and download links.

Additional vendor advisories are available:

  • GitHub CVE-2024-30171 Wiki (Java)
  • GitHub CVE-2024-30171 Wiki (C#)
  • NetApp Security Advisory NTAP-20240614-0008

Workarounds

  • Disable RSA-based key exchange cipher suites in TLS configuration where feasible
  • Prefer ECDHE-based cipher suites which are not affected by this vulnerability
  • Implement network-level rate limiting for TLS handshake attempts
  • Use TLS 1.3 exclusively where possible, as it removes RSA key exchange entirely
bash
# Example: Configuring Java TLS to prefer ECDHE cipher suites
# Add to JVM startup options or security.properties
# Disable RSA key exchange cipher suites as a workaround
jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \
    DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
    TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, \
    TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechBouncy Castle

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.10%

  • 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-203
  • Technical References
  • GitHub CVE-2024-30171 Wiki

  • GitHub CVE-2024-30171 Wiki

  • NetApp Security Advisory NTAP-20240614-0008

  • Bouncy Castle Latest Releases
  • Related CVEs
  • CVE-2024-34447: Bouncy Castle Information Disclosure Bug

  • CVE-2024-29857: Bouncy Castle DoS Vulnerability

  • CVE-2024-30172: Bouncy Castle Ed25519 DoS 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