Skip to main content

Bouncy Castle bc-java CVE-2026-59652

| EUVDEUVD-2026-52022 MEDIUM
LDAP Injection (CWE-90)
2026-08-03 bcorg GHSA-mf66-6236-xhfw
6.9
CVSS 4.0 · Vendor: bcorg
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft certificate with LDAP metacharacters in CN
  2. Delivery
    Deliver certificate to target application (TLS client cert or repository fetch)
  3. Exploit
    Application invokes bcprov-jdk14 LDAPStoreHelper for path building or CRL lookup
  4. Execution
    Unescaped CN concatenated into DirContext.search() filter
  5. Persist
    Injected filter predicate alters LDAP query results
  6. Impact
    Attacker manipulates certificate or CRL resolution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization LDAP query parameterization
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three specific conditions to be simultaneously true. First, the target application must use the bcprov-jdk14 artifact (the legacy jdk1.4 Ant-built distribution) - not any Gradle-built Bouncy Castle jar, which was patched under CVE-2023-33201. Second, the application must have LDAP-based certificate path building or CRL lookup configured, meaning LDAPStoreHelper must be invoked during certificate validation; this is a non-default configuration requiring explicit setup of an X.509 LDAP cert store. Third, the attacker must be able to supply or influence a certificate whose Subject or Issuer CN field contains LDAP filter metacharacters. Exploitation is limited by: the niche deployment of the jdk1.4 legacy distribution, the requirement for LDAP cert store configuration, and the need to inject a certificate into the validation path.

Impact

The CVSS 4.0 base score of 6.9 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N) reflects unauthenticated network access with low-complexity exploitation and limited confidentiality and integrity impact. However, two factors substantially reduce real-world risk below what the vector alone implies. First, the vulnerability exists exclusively in the bcprov-jdk14 (jdk1.4 legacy) distribution; the Gradle-built jars used by the vast majority of modern Java applications were already patched under CVE-2023-33201. Second, exploitation requires the target application to (a) use bcprov-jdk14 specifically, and (b) have LDAP-based certificate path building or CRL lookup configured - a non-default, administratively controlled setup. No KEV listing, no public POC, and no EPSS data were provided. The practical exploitation surface is therefore narrow despite the network-reachable attack vector. This should be treated as a moderate patch-priority item for any legacy jdk1.4 Bouncy Castle deployment that uses LDAP certificate stores, but does not represent broad systemic risk.

Exploit ScenarioDerived

An attacker in a position to present a crafted X.509 certificate - for example, as a client certificate in a TLS handshake, or by publishing a certificate to a repository the server fetches - embeds LDAP metacharacters in the certificate's Subject CN field (e.g., CN=a)(userPassword=*). When a Java application using bcprov-jdk14 performs certification-path building or CRL lookup that triggers LDAPStoreHelper, the unescaped CN value is concatenated into the DirContext.search() filter, rewriting the LDAP query and potentially leaking directory entries or bypassing certificate validation logic. No public POC has been identified, but the technique is well-understood from CVE-2023-33201.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 03, 2026

LDAP filter injection in Bouncy Castle bc-java before 1.85 allows network-reachable attackers to manipulate LDAP directory search queries by supplying certificates with crafted Subject or Issuer CN values containing LDAP metacharacters. This is a bypass of the CVE-2023-33201 fix: the escaping was applied to the main-Java LDAPStoreHelper and both X509LDAPCertStoreSpi variants, but the jdk1.4 Ant build overlay carries its own private parseDN method that was never patched, leaving bcprov-jdk14 consumers exposed. No public exploit code has been identified and this vulnerability is not listed in CISA KEV at time of analysis.

RemediationAI

Upgrade to Bouncy Castle bc-java 1.85 or later, which applies RFC 2254 LDAP filter escaping in the jdk1.4 LDAPStoreHelper.parseDN method (patch commit: https://github.com/bcgit/bc-java/commit/27c468af54ee6c6af87eab5a3a8468dce17e24a0). Consumers of the bcprov-jdk14 artifact should update their dependency to the patched release. As a workaround for environments where upgrading is not immediately possible, disabling LDAP-based certificate path building and CRL lookup (e.g., by switching to a local CRL or OCSP-based store) removes the vulnerable code path entirely; however, this may impact PKI validation functionality depending on deployment architecture. No generic network-layer workaround is effective since filter injection occurs inside the JVM's LDAP client logic.

Affected VersionsENISA

BC-JAVA 0 <1.85

Affected Packages

euvd bc_java fix: 1.85

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Bouncy Castle bc-java (CPE: cpe:2.3:a:legion_of_the_bouncy_castle_inc.:bc-java:*:*:*:*:*:*:*:*) is a widely used Java cryptography library. The jdk1.4 build variant ships a separate source overlay at prov/src/main/jdk1.4/org/bouncycastle/x509/util/LDAPStoreHelper.java. This file contains its own private parseDN method which, unlike its counterpart in the main-Java build (which delegates to LDAPUtils.parseDN), did not apply RFC 2254 filter-character escaping before concatenating DN-derived values into a DirContext.search() filter string. CWE-90 (LDAP Injection) is the root cause: unsanitized user-controlled or externally-derived strings - here, CN values extracted from certificate Subject/Issuer fields - are embedded directly in an LDAP filter expression. A certificate CN containing metacharacters such as '(' or ')' or '*' can close the intended filter clause and inject arbitrary filter predicates, altering which directory entries are returned during certificate-path building or CRL retrieval.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (bcorg) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/U:Amber
vuln.today AI 4.8 MEDIUM

AV:N because attacker delivers crafted certificate remotely; AC:H because LDAP cert store configuration and bcprov-jdk14 usage are non-default prerequisites; C:L/I:L for limited LDAP query manipulation; A:N as no availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 6.5 MEDIUM

Primary rating from Vendor (bcorg).

CVSS VectorVendor: bcorg

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

In Bouncy Castle for Java before 1.85, LDAP filter injection in legacy jdk1.4 LDAPStoreHelper.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Low
legacy jdk1.4 distribution, superseded by modern Bouncy Castle artifacts
Data Quality
7 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Development Tools 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Server 16.0 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy