A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2025-8885

CVE-2025-8885: Bouncy Castle Java DoS Vulnerability

CVE-2025-8885 is a denial of service vulnerability in Bouncy Castle BC Java and BC-FJA caused by excessive resource allocation without limits. This article covers the technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2025-8885 Overview

CVE-2025-8885 affects the Legion of the Bouncy Castle BC Java (bcprov) and BC-FJA (bc-fips) cryptographic libraries. The flaw resides in ASN1ObjectIdentifier.java and allows excessive memory allocation when parsing crafted ASN.1 input. An attacker can send specially constructed data to a service that uses Bouncy Castle for cryptographic or certificate processing. This triggers unbounded resource allocation, leading to a denial-of-service condition. The vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling. It impacts BC Java versions 1.0 through 1.77, BC-FJA 1.0.0 through 1.0.2.5, and BC-FJA 2.0.0 through 2.0.1.

Critical Impact

Remote attackers can exhaust memory on systems parsing untrusted ASN.1 object identifiers, causing application-level denial of service across any Java service relying on vulnerable Bouncy Castle versions.

Affected Products

  • Legion of the Bouncy Castle BC Java (bcprov) versions 1.0 through 1.77
  • Legion of the Bouncy Castle BC-FJA (bc-fips) versions 1.0.0 through 1.0.2.5
  • Legion of the Bouncy Castle BC-FJA (bc-fips) versions 2.0.0 through 2.0.1

Discovery Timeline

  • 2025-08-12 - CVE-2025-8885 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-8885

Vulnerability Analysis

The vulnerability is a resource-exhaustion denial-of-service issue in Bouncy Castle's ASN.1 parsing layer. Bouncy Castle is a widely deployed Java cryptography provider used for TLS, S/MIME, PKCS, X.509 certificate processing, and JCE operations. The defective code path lives in ASN1ObjectIdentifier.java, which decodes Object Identifiers (OIDs) from DER or BER encoded streams.

When the parser processes a malicious OID encoding, it allocates memory proportional to attacker-controlled length fields without enforcing a sane upper bound. Applications that decode certificates, signed messages, or other ASN.1 structures from untrusted sources can be forced into excessive heap allocation. This degrades service availability and may crash the host JVM with an OutOfMemoryError.

Root Cause

The root cause is missing input throttling on the size of OID encodings parsed by ASN1ObjectIdentifier. The implementation trusts length-derived values from the input stream and allocates buffers or accumulators without first validating that the requested size is bounded. This matches the CWE-770 pattern, where resource allocation occurs without limits or quotas.

Attack Vector

The attack is network-reachable and requires no authentication or user interaction. Any endpoint that parses ASN.1 payloads with vulnerable Bouncy Castle code is exposed. Typical exposure surfaces include TLS handshake processing, certificate validation, JWT/JWS verification using X.509 chains, PKCS#7 and CMS message parsing, and LDAP or OCSP responders. An attacker submits a single crafted message or certificate to trigger the allocation, with no follow-on access required.

No verified public exploit code is available. The vulnerability mechanism is documented in the Bouncy Castle CVE-2025-8885 Wiki.

Detection Methods for CVE-2025-8885

Indicators of Compromise

  • Java applications terminating with java.lang.OutOfMemoryError: Java heap space shortly after receiving external ASN.1, certificate, or signed-message input.
  • Sudden, sustained JVM heap growth correlated with inbound TLS handshakes, OCSP responses, or PKCS/CMS message processing.
  • Repeated crashes or restarts of services using bcprov-jdk* or bc-fips JARs at vulnerable versions.

Detection Strategies

  • Inventory all Java applications and identify dependencies on bcprov, bcprov-jdk15on, bcprov-jdk18on, and bc-fips using a software bill of materials (SBOM) or build-tool dependency reports.
  • Flag any artifact at or below the affected versions (bcprov ≤ 1.77, bc-fips ≤ 1.0.2.5 in the 1.x line, bc-fips ≤ 2.0.1 in the 2.x line).
  • Use SCA tools to continuously match deployed JARs against the vulnerable version ranges.

Monitoring Recommendations

  • Monitor JVM heap utilization, garbage collection frequency, and OutOfMemoryError events on services exposing certificate or ASN.1 parsing endpoints.
  • Track anomalous TLS handshake failure rates and oversized client certificate submissions at the load balancer or reverse proxy.
  • Alert on process restarts of Java services that handle untrusted cryptographic input, and correlate with source IP for repeated triggers.

How to Mitigate CVE-2025-8885

Immediate Actions Required

  • Upgrade bcprov to version 1.78 or later, and bc-fips to a fixed release beyond 1.0.2.5 or 2.0.1 as published by the Bouncy Castle project.
  • Audit all transitive dependencies, including shaded or repackaged Bouncy Castle copies inside fat JARs and vendor distributions.
  • Restart affected Java services after upgrading to ensure no classloader retains the vulnerable classes.

Patch Information

The Bouncy Castle project documents the fix and affected version ranges in the official CVE-2025-8885 Wiki entry. Consumers should pull the latest bcprov and bc-fips artifacts from Maven Central and update dependency declarations accordingly.

Workarounds

  • Place ASN.1-parsing services behind a reverse proxy that enforces strict size limits on inbound certificates, TLS messages, and signed payloads.
  • Apply JVM heap caps and per-request memory quotas so a single malicious input cannot exhaust the entire process.
  • Restrict which network peers may submit client certificates or signed messages, reducing exposure where authentication or allowlisting is feasible.
bash
# Maven dependency upgrade example - replace vulnerable bcprov with a fixed release
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk18on -DdepVersion=1.78 -DforceVersion=true

# Gradle: pin a non-vulnerable version in build.gradle
# implementation 'org.bouncycastle:bcprov-jdk18on:1.78'

# Verify deployed artifact versions
find / -name 'bcprov*.jar' -o -name 'bc-fips*.jar' 2>/dev/null

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

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:P/AU:X/R:U/V:X/RE:M/U:Amber
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-770
  • Technical References
  • GitHub CVE-2025-08885 Wiki
  • Related CVEs
  • CVE-2024-29857: Bouncy Castle DoS Vulnerability

  • CVE-2024-30172: Bouncy Castle Ed25519 DoS Vulnerability

  • CVE-2026-8149: Bouncy Castle BC-FIPS Vulnerability

  • CVE-2026-0636: Bouncy Castle BC-JAVA LDAP Injection Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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