Vulnerabilities in pkg:maven/org.apache.directory.api/api-ldap-client-api
PACKAGECVE-2026-35563 is a HIGH apache directory ldap api lacks vulnerability (CWE-297: Improper Validation of Certificate with Host Mismatch) affecting Api ldap client api libraries in the Maven ecosystem. The issue involves apache directory ldap api lacks server certificate verification for ldap hostnames. Remediation is available by upgrading affected packages to version 2.1.8.
pkg:maven/org.apache.directory.api/api-ldap-client-api
Vulnerability advisories affecting package pkg:maven/org.apache.directory.api/api-ldap-client-api. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-85rw-g4f4-jprr | CVE-2026-35563 | HIGH | Apache Directory LDAP API lacks server certificate verification for LDAP hostnames |
CVE-2026-35563 at a Glance
How to Fix CVE-2026-35563
To remediate this vulnerability, upgrade all affected Api ldap client api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.directory.api</groupId>
<artifactId>api-ldap-client-api</artifactId>
<version>2.1.8</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.directory.api
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-35563, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.directory.api
Analyze the terminal output to locate any version of Api ldap client api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.8), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.directory.api command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-297: Improper Validation of Certificate with Host Mismatch, where the product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host. In Api ldap client api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-35563 Affected Api ldap client api Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.directory.api:api-ldap-client-api
|
Maven |
≥ 2.0.0
< 2.1.8
|
2.1.8
|
References
Frequently Asked Questions
What is CVE-2026-35563?
Which Api ldap client api versions are affected?
What version fixes CVE-2026-35563?
Is api-ldap-client-api affected?
What CWE is associated with CVE-2026-35563?
How can I check Maven dependencies for CVE-2026-35563?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-85rw-g4f4-jprr",
"modified" : "2026-07-07T23:46:48Z",
"published" : "2026-06-01T09:31:11Z",
"aliases" : [ "CVE-2026-35563" ],
"summary" : "Apache Directory LDAP API lacks server certificate verification for LDAP hostnames",
"details" : "It was identified that the LDAP client implementation in version 2.1.7 does not verify if the server certificate matches the intended LDAP hostname. While the underlying code validates the certificate chain against a trusted authority, the absence of endpoint identification allows a valid certificate issued for an entirely unrelated host to be improperly accepted. This oversight leaves the connection highly vulnerable to server impersonation and complete connection compromise.\n\nThe root cause of this vulnerability lies in the incomplete TLS server identity verification within the LDAP client implementation.\n\nThe attacker requires MITM capability on the network to exploit this vulnerability. This attacker must be able to present a certificate trusted by the client's configured trust store.\n\nThe hostname verification has been enforced in the new version of the LDAP API.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:L/SA:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.directory.api:api-ldap-client-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.1.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-35563"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/directory-ldap-api/commit/57a7726d8b6436c74945c12f5ba4e12d232d2bac"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/directory-ldap-api"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/5rc2nzqxp1m9wknyf93r8dnp46fhc1nn"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/06/01/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-297" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-07T23:46:48Z",
"nvd_published_at" : "2026-06-01T08:16:20Z"
}
}