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

CVE-2024-29857: Bouncy Castle DoS Vulnerability

CVE-2024-29857 is a denial of service vulnerability in Bouncy Castle cryptographic libraries that causes excessive CPU consumption through crafted EC certificate parameters. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-29857 Overview

An issue was discovered in ECCurve.java and ECCurve.cs in Bouncy Castle Java (BC Java) before 1.78, BC Java LTS before 2.73.6, BC-FJA before 1.0.2.5, and BC C# .Net before 2.3.1. Importing an EC certificate with crafted F2m parameters can lead to excessive CPU consumption during the evaluation of the curve parameters.

Critical Impact

This vulnerability allows remote attackers to cause a Denial of Service condition by providing maliciously crafted elliptic curve certificates with specially crafted F2m (binary field) parameters, resulting in excessive CPU consumption that can render applications unresponsive.

Affected Products

  • Bouncy Castle Java (BC Java) before version 1.78
  • Bouncy Castle Java LTS before version 2.73.6
  • Bouncy Castle FIPS Java API (BC-FJA) before version 1.0.2.5
  • Bouncy Castle C# .Net before version 2.3.1

Discovery Timeline

  • 2024-05-14 - CVE-2024-29857 published to NVD
  • 2024-12-06 - Last updated in NVD database

Technical Details for CVE-2024-29857

Vulnerability Analysis

This vulnerability exists in the elliptic curve cryptography implementation within Bouncy Castle's ECCurve.java (Java) and ECCurve.cs (C#) components. The flaw occurs when processing EC certificates that contain specially crafted F2m (binary field) curve parameters. When such malicious certificates are imported and parsed, the curve parameter evaluation algorithm enters a computationally expensive loop, consuming excessive CPU resources.

The vulnerability is classified under CWE-125 (Out-of-bounds Read), indicating that improper bounds checking during the processing of curve parameters contributes to the resource exhaustion condition. The attack can be executed remotely over the network without requiring any authentication or user interaction, making it particularly dangerous for applications that process untrusted certificates.

Root Cause

The root cause of this vulnerability lies in insufficient validation of F2m curve parameters during EC certificate import operations. The ECCurve class implementations fail to properly validate the computational complexity of the supplied curve parameters before attempting to evaluate them. When an attacker supplies carefully crafted F2m parameters, the evaluation algorithm performs an excessive number of calculations, leading to CPU exhaustion.

Specifically, the curve parameter parsing routines do not impose adequate limits on the mathematical operations required to process the curve definition, allowing malicious inputs to trigger algorithmic complexity attacks.

Attack Vector

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

  1. Crafting a malicious EC certificate with specially designed F2m curve parameters
  2. Submitting this certificate to any application using a vulnerable version of Bouncy Castle
  3. The certificate parsing triggers excessive CPU consumption during curve parameter evaluation
  4. The target application becomes unresponsive, resulting in denial of service

The vulnerability manifests in the elliptic curve parameter validation routines. When processing F2m (binary field) curve definitions, the implementation performs curve parameter evaluation without adequate complexity bounds. Malicious certificates can specify parameters that require exponentially more computation than legitimate curves, causing CPU exhaustion during the import process. See the GitHub Java Security Advisory and GitHub C# Security Advisory for detailed technical information.

Detection Methods for CVE-2024-29857

Indicators of Compromise

  • Unusual CPU spikes in applications processing EC certificates or cryptographic operations
  • Application hangs or timeouts during certificate import or validation operations
  • Increased processing time for TLS handshakes or certificate chain validation
  • Service unavailability correlated with certificate processing requests

Detection Strategies

  • Monitor for abnormal CPU utilization patterns in applications using Bouncy Castle cryptographic libraries
  • Implement logging and alerting for certificate processing operations that exceed normal duration thresholds
  • Deploy application performance monitoring to detect resource exhaustion attacks
  • Analyze incoming certificates for unusual or non-standard elliptic curve parameters before processing

Monitoring Recommendations

  • Enable detailed logging for certificate import operations in applications using Bouncy Castle
  • Set up CPU utilization alerts with baselines for normal cryptographic operation workloads
  • Monitor application response times and set thresholds for certificate validation operations
  • Implement circuit breakers or timeouts for certificate processing to prevent cascading failures

How to Mitigate CVE-2024-29857

Immediate Actions Required

  • Upgrade Bouncy Castle Java to version 1.78 or later immediately
  • Upgrade Bouncy Castle Java LTS to version 2.73.6 or later
  • Upgrade Bouncy Castle FIPS Java API (BC-FJA) to version 1.0.2.5 or later
  • Upgrade Bouncy Castle C# .Net to version 2.3.1 or later
  • Audit all applications in your environment that utilize Bouncy Castle libraries

Patch Information

Security patches are available from the Bouncy Castle project. The fixed versions include proper validation of F2m curve parameters to prevent the CPU exhaustion condition:

  • BC Java: Version 1.78+ - Bouncy Castle Latest Releases
  • BC Java LTS: Version 2.73.6+
  • BC-FJA: Version 1.0.2.5+
  • BC C# .Net: Version 2.3.1+

For additional vendor-specific guidance, refer to the NetApp Security Advisory NTAP-20241206-0008.

Workarounds

  • Implement certificate validation timeouts at the application level to prevent extended processing
  • Add input validation to reject EC certificates with unusual or non-standard curve parameters before passing to Bouncy Castle
  • Deploy rate limiting for certificate submission endpoints to reduce the impact of exploitation attempts
  • Consider using certificate allowlists in high-security environments to only accept certificates from known issuers
bash
# Maven dependency update example for BC Java
# Update pom.xml to use patched version:
# <dependency>
#     <groupId>org.bouncycastle</groupId>
#     <artifactId>bcprov-jdk18on</artifactId>
#     <version>1.78</version>
# </dependency>

# Gradle dependency update example:
# implementation 'org.bouncycastle:bcprov-jdk18on:1.78'

# Verify installed Bouncy Castle version in Java applications:
java -cp your-application.jar org.bouncycastle.LICENSE

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechBouncy Castle

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.34%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • GitHub C# Security Advisory

  • GitHub Java Security Advisory

  • Bouncy Castle Latest Releases

  • NetApp Security Advisory NTAP-20241206-0008
  • Related CVEs
  • CVE-2024-30172: Bouncy Castle Ed25519 DoS Vulnerability

  • CVE-2024-34447: Bouncy Castle Information Disclosure Bug

  • CVE-2024-30171: Bouncy Castle TLS Timing 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