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-2023-33202

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

CVE-2023-33202 is a denial of service flaw in Bouncy Castle for Java that allows attackers to trigger OutOfMemoryError via crafted ASN.1 data. This article covers the technical details, affected versions, and mitigations.

Published: February 11, 2026

CVE-2023-33202 Overview

CVE-2023-33202 is a Denial of Service (DoS) vulnerability affecting Bouncy Castle for Java before version 1.73. The vulnerability exists within the org.bouncycastle.openssl.PEMParser class, which is responsible for parsing OpenSSL PEM encoded streams containing X.509 certificates, PKCS8 encoded keys, and PKCS7 objects. When processing a specially crafted file containing malicious ASN.1 data, the PEMParser triggers an OutOfMemoryError, which can be exploited to cause a denial of service condition.

Critical Impact

Applications using vulnerable versions of Bouncy Castle's PEMParser to process untrusted PEM files can be crashed through memory exhaustion attacks, potentially disrupting cryptographic operations and certificate processing services.

Affected Products

  • Bouncy Castle for Java versions prior to 1.73
  • Bouncy Castle FIPS Java API (BC-FJA) versions 1.0.2.3 and earlier (fixed in 1.0.2.4)

Discovery Timeline

  • November 23, 2023 - CVE-2023-33202 published to NVD
  • August 18, 2025 - Last updated in NVD database

Technical Details for CVE-2023-33202

Vulnerability Analysis

This vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption), a resource exhaustion vulnerability that allows attackers to consume excessive system memory. The flaw resides in how the PEMParser class handles ASN.1 data structures during the parsing of PEM-encoded cryptographic objects.

When the PEMParser encounters specially crafted ASN.1 data within a PEM file, it fails to properly validate or limit the size of data structures being processed. This allows an attacker to craft malicious input that causes the parser to allocate excessive amounts of memory, ultimately resulting in an OutOfMemoryError that crashes the Java Virtual Machine or severely degrades application performance.

The vulnerability requires local access and user interaction, meaning an attacker must convince a user or application to process a malicious PEM file. However, in automated systems that process certificates or keys from untrusted sources, this could be exploited without direct user interaction.

Root Cause

The root cause of CVE-2023-33202 is insufficient validation of ASN.1 data structure sizes within the PEMParser implementation. The parser does not adequately constrain memory allocation when processing ASN.1-encoded data, allowing crafted input to trigger unbounded memory consumption.

ASN.1 (Abstract Syntax Notation One) is a standard interface description language for defining data structures that can be serialized and deserialized. PEM files use Base64-encoded ASN.1 structures, and the lack of proper bounds checking on these structures enables the memory exhaustion attack.

Attack Vector

The attack vector is local with required user interaction. An attacker exploits this vulnerability by:

  1. Crafting a malicious PEM file containing specially constructed ASN.1 data designed to trigger excessive memory allocation
  2. Delivering the malicious file to a target system through various means (email attachment, file upload, repository poisoning)
  3. Waiting for the victim application to parse the malicious PEM file using the vulnerable PEMParser class
  4. The parser attempts to process the crafted ASN.1 structures, allocating memory until an OutOfMemoryError occurs

The vulnerability specifically targets the PEM parsing functionality used for handling X.509 certificates, PKCS8 keys, and PKCS7 objects. Applications that accept and process PEM files from untrusted sources are at highest risk.

For detailed technical information, refer to the GitHub CVE-2023-33202 Wiki maintained by the Bouncy Castle team.

Detection Methods for CVE-2023-33202

Indicators of Compromise

  • Unexpected OutOfMemoryError exceptions in Java applications using Bouncy Castle's PEMParser
  • Abnormal memory consumption spikes during certificate or key parsing operations
  • Application crashes or JVM terminations coinciding with PEM file processing
  • Log entries indicating memory allocation failures in cryptographic parsing components

Detection Strategies

  • Implement Software Composition Analysis (SCA) scanning to identify Bouncy Castle versions prior to 1.73 or BC-FJA versions prior to 1.0.2.4
  • Monitor JVM heap memory metrics during PEM parsing operations for unusual allocation patterns
  • Configure application-level logging to capture exceptions in org.bouncycastle.openssl.PEMParser operations
  • Deploy runtime application self-protection (RASP) solutions to detect memory exhaustion attempts

Monitoring Recommendations

  • Set up alerts for OutOfMemoryError exceptions in production environments using Bouncy Castle
  • Implement JVM memory monitoring with thresholds to detect rapid memory growth during file processing
  • Review application logs for repeated parsing failures that may indicate exploitation attempts
  • Monitor file upload endpoints and certificate processing services for unusual activity patterns

How to Mitigate CVE-2023-33202

Immediate Actions Required

  • Upgrade Bouncy Castle for Java to version 1.73 or later immediately
  • For FIPS-compliant deployments, upgrade BC-FJA to version 1.0.2.4 or later
  • Audit your application dependencies to identify all instances of vulnerable Bouncy Castle versions
  • Review systems that process PEM files from untrusted sources and prioritize their patching

Patch Information

The vulnerability has been addressed in:

  • Bouncy Castle for Java: Version 1.73 and later
  • Bouncy Castle FIPS Java API (BC-FJA): Version 1.0.2.4 and later

Organizations should update their Maven, Gradle, or other build configurations to use the patched versions. For additional guidance, consult the Bouncy Castle Official Site and the NetApp Security Advisory NTAP-20240125-0001.

Workarounds

  • Implement input validation to restrict the maximum size of PEM files before passing them to the PEMParser
  • Configure JVM memory limits (-Xmx) to prevent a single application from consuming all system memory
  • Isolate PEM parsing operations in sandboxed processes with resource constraints
  • Avoid processing PEM files from untrusted sources until the patch can be applied
bash
# Example: Update Bouncy Castle dependency in Maven pom.xml
# Replace existing bcpkix-jdk15on dependency with version 1.73+
# <dependency>
#     <groupId>org.bouncycastle</groupId>
#     <artifactId>bcpkix-jdk15on</artifactId>
#     <version>1.73</version>
# </dependency>

# Verify Bouncy Castle version in your application
mvn dependency:tree | grep bouncycastle

# For Gradle projects, update build.gradle
# implementation 'org.bouncycastle:bcpkix-jdk15on:1.73'

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechBouncycastle

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.16%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Technical References
  • Bouncy Castle Official Site

  • GitHub CVE Wiki Entry

  • GitHub CVE-2023-33202 Details

  • NetApp Security Advisory NTAP-20240125-0001
  • Related CVEs
  • CVE-2020-26939: Bouncycastle Information Disclosure Flaw

  • CVE-2020-15522: Bouncy Castle Timing 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