Skip to content

CVE‐2026‐59651

David Hook edited this page Aug 3, 2026 · 2 revisions

Title: LDAP filter injection in legacy jdk1.4 LDAPStoreHelper.

Issue affecting: BC before 1.85.

Fixed versions: BC 1.85.

Platform affected: Java 8 and later.

The CVE-2023-33201 / CVE-2026-0636 fix added filterEncode() escaping to the main-java X509LDAPCertStoreSpi, main-java LDAPStoreHelper, and jdk1.4 X509LDAPCertStoreSpi, but missed the jdk1.4 LDAPStoreHelper. Its parseDN() returns the raw DN component, which callers concatenate directly into '(' + attr + '=' + value + ')' and pass to DirContext.search(). Because ant/jdk14.xml overwrites the patched main-java file with this variant when building bcprov-jdk14, the advertised fix never reaches the jdk14 distribution. An attacker who can present a certificate with a crafted Subject/Issuer CN (e.g.

The fix was introduced in commit 27c468af54ee.

Clone this wiki locally