Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-0636

CVE-2026-0636: Bouncy Castle BC-JAVA LDAP Injection Flaw

CVE-2026-0636 is an LDAP injection vulnerability in Bouncy Castle BC-JAVA bcprov that affects versions 1.74 through 1.83. This article covers the technical details, affected versions, security impact, and mitigation steps.

Published: April 17, 2026

CVE-2026-0636 Overview

CVE-2026-0636 is an LDAP Injection vulnerability affecting the Legion of the Bouncy Castle BC-JAVA cryptographic library. The vulnerability exists in the LDAPStoreHelper component within the prov modules, where improper neutralization of special elements used in LDAP queries allows attackers to manipulate LDAP operations through crafted input.

Bouncy Castle is a widely-used Java cryptographic library that provides cryptographic APIs and certificate handling capabilities. The vulnerable code fails to properly escape special characters in LDAP filter expressions, potentially allowing attackers to modify LDAP query semantics when certificate store operations interact with LDAP directories.

Critical Impact

Attackers can inject malicious LDAP filter expressions to bypass authentication checks, extract sensitive directory information, or modify query logic in applications that use Bouncy Castle's LDAP certificate store functionality.

Affected Products

  • BC-JAVA bcprov versions 1.74 through 1.83
  • Bouncy Castle prov modules on all platforms
  • Applications using X509LDAPCertStoreSpi or LDAPStoreHelper components

Discovery Timeline

  • 2026-04-15 - CVE-2026-0636 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2026-0636

Vulnerability Analysis

This LDAP Injection vulnerability (CWE-90) stems from insufficient input sanitization in the Bouncy Castle LDAP certificate store implementation. When applications use BC-JAVA to retrieve certificates from LDAP directories, user-controlled input incorporated into LDAP filter expressions without proper escaping can modify the intended query structure.

The vulnerability is network-accessible with low attack complexity, requiring no privileges or user interaction for exploitation. While confidentiality impact is limited, successful exploitation could allow attackers to extract information beyond their authorized scope from LDAP directories or manipulate certificate retrieval logic.

Root Cause

The root cause lies in the LDAPStoreHelper and related LDAP classes within the prov modules, which failed to escape LDAP special characters before constructing filter expressions. According to RFC 2254, characters such as *, (, ), \, and null bytes have special meaning in LDAP filters and must be properly escaped to prevent injection attacks.

The security patch introduces a dedicated LDAPUtils class that provides centralized LDAP filter escaping functionality, ensuring all special characters are properly encoded before being incorporated into LDAP queries.

Attack Vector

The attack vector is network-based, where an attacker supplies malicious input containing LDAP metacharacters to an application using the vulnerable Bouncy Castle components. When this input is used in certificate lookups or other LDAP operations, the injected characters can:

  • Modify filter logic using * wildcards or parentheses
  • Escape out of string contexts using backslash sequences
  • Inject null bytes to truncate or terminate queries unexpectedly

The security patch implements proper escaping using the following approach:

java
// Security patch: LDAPUtils.java - LDAP filter character escaping
// Source: https://github.com/bcgit/bc-java/commit/d20cdb8430e09224114fec0179a71859929fcbde

+package org.bouncycastle.ldap;
+
+import org.bouncycastle.util.Strings;
+
+/**
+ * General utility methods for assisting with preparation of LDAP queries.
+ */
+public class LDAPUtils
+{
+    private static String[] FILTER_ESCAPE_TABLE = new String['\\' + 1];
+
+    static
+    {
+        // Filter encoding table -------------------------------------
+
+        // fill with char itself
+        for (char c = 0; c < FILTER_ESCAPE_TABLE.length; c++)
+        {
+            FILTER_ESCAPE_TABLE[c] = String.valueOf(c);
+        }
+
+        // escapes (RFC2254)
+        FILTER_ESCAPE_TABLE['*'] = "\\2a";
+        FILTER_ESCAPE_TABLE['('] = "\\28";
+        FILTER_ESCAPE_TABLE[')'] = "\\29";
+        FILTER_ESCAPE_TABLE['\\'] = "\\5c";
+        FILTER_ESCAPE_TABLE[0] = "\\00";
+    }

Source: GitHub Commit Changes

Detection Methods for CVE-2026-0636

Indicators of Compromise

  • LDAP query logs containing unescaped special characters such as *, (, ), or \ in filter expressions
  • Unusual certificate retrieval patterns or LDAP queries targeting unexpected directory paths
  • Application logs showing LDAP filter syntax errors indicating injection attempts
  • Anomalous LDAP bind operations following certificate store queries

Detection Strategies

  • Monitor LDAP server logs for filter expressions containing suspicious character sequences like )(, *)(, or encoded escape sequences
  • Implement application-level logging to capture inputs passed to Bouncy Castle certificate store operations
  • Deploy network-level inspection to identify LDAP traffic with malformed or suspicious filter syntax
  • Use static analysis tools to identify BC-JAVA usage patterns that pass untrusted input to LDAP operations

Monitoring Recommendations

  • Enable detailed LDAP query logging on directory servers to capture filter expressions
  • Configure SentinelOne Singularity to monitor Java applications for anomalous LDAP connection patterns
  • Implement alerting for LDAP queries with unusually complex or nested filter expressions
  • Review application dependencies for vulnerable BC-JAVA versions (1.74 through 1.83)

How to Mitigate CVE-2026-0636

Immediate Actions Required

  • Upgrade Bouncy Castle BC-JAVA to version 1.84 or later immediately
  • Audit applications to identify usage of X509LDAPCertStoreSpi, LDAPStoreHelper, or related LDAP certificate store components
  • Review and validate all input sources that flow into LDAP certificate lookups
  • Implement additional input validation at the application layer as defense-in-depth

Patch Information

The vulnerability has been addressed in BC-JAVA version 1.84, which introduces the LDAPUtils class providing centralized LDAP filter escaping. The patch refactors common LDAP handling code to ensure consistent and proper escaping of special characters per RFC 2254.

For detailed patch information, refer to the GitHub Commit Changes and the GitHub CVE-2026-0636 Details.

Workarounds

  • Implement application-level input validation to reject or escape LDAP special characters before passing data to Bouncy Castle APIs
  • If LDAP certificate store functionality is not required, disable or remove usage of X509LDAPCertStoreSpi
  • Deploy network-level LDAP filtering to block queries containing suspicious injection patterns
  • Consider using alternative certificate retrieval mechanisms that do not rely on LDAP
bash
# Maven dependency update example
# Update pom.xml to use patched Bouncy Castle version
mvn versions:use-latest-releases -Dincludes=org.bouncycastle:bcprov-jdk18on

# Verify current Bouncy Castle version in project
mvn dependency:tree | grep bouncycastle

# Force update to secure version 1.84+
mvn versions:set-property -Dproperty=bouncycastle.version -DnewVersion=1.84

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechBc Java

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/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:N/AU:Y/R:A/V:X/RE:M/U:Amber
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-90
  • Technical References
  • GitHub Commit Changes

  • GitHub CVE-2026-0636 Details
  • Related CVEs
  • CVE-2026-3505: BC-JAVA bcpg DoS Vulnerability
Default Legacy - Prefooter | 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