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

Updated: May 15, 2026

CVE-2026-0636 Overview

CVE-2026-0636 is an LDAP injection vulnerability in the Legion of the Bouncy Castle BC-JAVA bcprov cryptography library. The flaw resides in the LDAPStoreHelper class within the prov modules. Affected releases fail to properly neutralize special characters used in Lightweight Directory Access Protocol (LDAP) queries. This issue is categorized under CWE-90 — Improper Neutralization of Special Elements used in an LDAP Query. The defect affects BC-JAVA versions from 1.74 up to but not including 1.84. Applications that pass attacker-controllable input through LDAPStoreHelper for certificate or CRL retrieval may issue malformed or injected LDAP filters.

Critical Impact

Attackers can manipulate LDAP queries issued through LDAPStoreHelper to alter directory lookups for X.509 certificates and CRLs, potentially affecting trust decisions made by applications that rely on Bouncy Castle.

Affected Products

  • Legion of the Bouncy Castle BC-JAVA bcprov version 1.74
  • Legion of the Bouncy Castle BC-JAVA bcprov versions 1.75 through 1.83
  • Java applications using LDAPStoreHelper from the prov modules for LDAP-based certificate or CRL retrieval

Discovery Timeline

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

Technical Details for CVE-2026-0636

Vulnerability Analysis

The LDAPStoreHelper class in bcprov constructs LDAP search filters used to retrieve X.509 certificates, cross-certificate pairs, and certificate revocation lists from directory servers. The implementation does not adequately escape special LDAP filter characters such as *, (, ), \, and NUL before embedding caller-supplied selector values into the filter string. An attacker who controls input that flows into a certificate or CRL selector can alter the structure of the resulting LDAP query.

LDAP injection allows the attacker to broaden, narrow, or otherwise change the directory query semantics. In a certificate retrieval context, this can cause the helper to return unexpected entries, no entries, or to query attributes outside the intended scope. Applications that subsequently rely on these results for trust validation, signature verification, or PKI operations may make decisions based on directory data the attacker has influenced. The vulnerability is reachable over the network because LDAP filter content typically originates from certificate fields or application input that the attacker can shape.

Root Cause

The root cause is missing escaping of LDAP metacharacters in filter assembly within LDAPStoreHelper. RFC 4515 requires that characters \, *, (, ), and the NUL byte be encoded as backslash-hex sequences before inclusion in a filter. The affected releases concatenate selector values into the filter string without applying this escaping, which permits filter syntax injection.

Attack Vector

An attacker supplies crafted input that reaches a selector field consumed by LDAPStoreHelper, for example through a certificate subject, issuer name, or an application-level parameter used during PKI lookup. When the helper queries the directory, the injected metacharacters change the filter structure. Network access to the application and the ability to influence selector content are the prerequisites for exploitation. No authentication is required at the LDAP layer for the injection itself to occur.

A detailed description of the affected code paths and the corrective changes is available in the Bouncy Castle CVE-2026-0636 Wiki and the upstream fix commit.

Detection Methods for CVE-2026-0636

Indicators of Compromise

  • LDAP server logs showing search filters containing unescaped *, (, or ) characters originating from application service accounts using Bouncy Castle.
  • Unexpected broad-match LDAP queries against certificate, CRL, or crossCertificatePair attributes.
  • Application logs showing PKI lookups for principals or selectors that contain LDAP metacharacters.

Detection Strategies

  • Inventory Java dependencies and flag any bcprov-* artifact at versions 1.74 through 1.83, including transitive dependencies surfaced by tools such as mvn dependency:tree or gradle dependencies.
  • Search source code for references to org.bouncycastle.jce.provider.X509LDAPCertStoreParameters and LDAPStoreHelper to identify call sites that pass externally influenced selectors.
  • Enable verbose LDAP query logging on directory servers and alert on filters that contain metacharacters in user-controlled positions.

Monitoring Recommendations

  • Forward LDAP audit logs to a SIEM or data lake and build detections for malformed or unusually broad filter expressions originating from PKI service accounts.
  • Monitor for anomalous spikes in LDAP search volume or response size from hosts running Java applications that perform certificate path validation.
  • Track outbound LDAP traffic from application servers to ensure it terminates only at authorized directory servers.

How to Mitigate CVE-2026-0636

Immediate Actions Required

  • Upgrade bcprov to version 1.84 or later across all Java applications and rebuild dependent artifacts.
  • Identify and remediate transitive uses of vulnerable bcprov versions in container images, application servers, and packaged software.
  • Where LDAPStoreHelper is used with externally influenced selectors, validate and escape input at the application boundary as a defense-in-depth measure.

Patch Information

The issue is resolved in Bouncy Castle BC-JAVA release 1.84. The corrective change is published in the upstream commit d20cdb8, which adds proper escaping of LDAP filter metacharacters in LDAPStoreHelper. Refer to the Bouncy Castle project wiki entry for CVE-2026-0636 for upgrade guidance.

Workarounds

  • Restrict the directory servers reachable from applications using bcprov to trusted PKI directories only, reducing the impact of injected filters.
  • Apply network egress controls so that only authorized LDAP endpoints can be contacted by Java application servers.
  • Where upgrading is not immediately possible, replace LDAPStoreHelper-based certificate retrieval with an alternative CertStore implementation that performs proper filter escaping, or pre-sanitize all selector inputs by encoding \, *, (, ), and NUL per RFC 4515 before invoking the helper.
bash
# Example: identify vulnerable bcprov versions in a Maven project
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk15on,org.bouncycastle:bcprov-jdk18on

# Example: enforce a fixed version in Gradle
# build.gradle
# configurations.all {
#   resolutionStrategy.force 'org.bouncycastle:bcprov-jdk18on: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/TechBouncy Castle

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.02%

  • 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 Wiki
  • Related CVEs
  • CVE-2026-8149: Bouncy Castle BC-FIPS Vulnerability

  • CVE-2026-5588: BC-JAVA Cryptographic Algorithm Vulnerability

  • CVE-2025-14813: BC-JAVA Cryptographic Algorithm Vulnerability

  • CVE-2026-5598: BC-JAVA Information Disclosure 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