GHSA-85rw-g4f4-jprr
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify application using Apache LDAP API
-
DeliveryObtain MITM position on LDAP path
-
ExploitPresent valid CA-signed certificate for wrong hostname
-
ExecutionClient skips hostname check and binds
-
PersistCapture LDAP credentials and queries
-
ImpactRelay or tamper with directory responses
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate host validation
|
| Exploitation Conditions | Exploitation requires (1) the victim application to use a vulnerable version of the Apache Directory LDAP API as its LDAP client, (2) the attacker to occupy an active man-in-the-middle position on the network path between the client and the legitimate LDAP server (reflected in CVSS AT:P and AC:H), and (3) the attacker to possess any TLS certificate the client's truststore accepts - typically trivially obtainable from a public CA for an attacker-owned domain, since the bug is that hostname binding is skipped. Limiting factors: the attacker must have low-privilege network access on the LDAP traffic path (PR:L), exploitation is not automatable across the internet because each target's LDAP traffic must be intercepted individually, and clients that already pin certificates outside the library or use mutual TLS with strict server-side checks are partially protected. |
| Impact | The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L/UI:N) describes a network-reachable issue requiring high attack complexity, an attack requirement (AT:P - presence of a specific condition such as an active man-in-the-middle position), and low privileges, yielding high confidentiality and integrity impact with subsequent scope changes. EPSS, KEV, and SSVC data were not provided, so probability of mass exploitation cannot be quantified, but the AC:H/AT:P combination signals that exploitation is conditional on the attacker already controlling a network path between the LDAP client and server - realistic in hostile-network, captive-portal, or compromised-internal-network scenarios but not opportunistic. No public exploit identified at time of analysis. Because the disclosure comes through the official ASF channel via oss-security and references the Apache lists thread, the vulnerability itself is well-attested even though downstream metadata (CPE, patched version, EPSS) is absent. |
| Exploit ScenarioDerived | An attacker who can intercept LDAP/LDAPS traffic - for example, via ARP spoofing on an internal subnet, a rogue Wi-Fi access point, or a compromised upstream router - presents a TLS certificate that is valid (signed by any CA the client trusts) but issued for a hostname the attacker controls. Because the Apache Directory LDAP API does not verify the certificate's hostname matches the intended LDAP server, the client completes the handshake and proceeds to transmit bind credentials and directory queries to the attacker, who can capture credentials and return manipulated directory responses to influence application authorization decisions. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
Improper certificate hostname validation in the Apache Directory LDAP API client allows network-positioned attackers to impersonate LDAP servers and intercept authenticated directory traffic. The flaw was disclosed via the oss-security mailing list on 2026-06-01 and is tracked under CWE-297; no public exploit identified at time of analysis. With a CVSS 4.0 score of 8.8 and high confidentiality/integrity impact, the issue is significant for applications that rely on this library to connect to LDAP/LDAPS endpoints.
RemediationAI
Patch available per vendor advisory - consult the Apache mailing list thread at https://lists.apache.org/thread/5rc2nzqxp1m9wknyf93r8dnp46fhc1nn and the oss-security post at https://www.openwall.com/lists/oss-security/2026/06/01 for the fixed release coordinates, then upgrade the Apache Directory LDAP API dependency in all consuming applications. Until the upgrade is deployed, compensating controls include constraining LDAP client traffic to trusted network segments (so a MITM position is harder to achieve), pinning the LDAP server certificate or its issuing CA inside the application's trust store rather than relying on the system default truststore, and where the application code allows, wrapping LDAP connection setup with an explicit hostname verifier (for example, validating the server certificate's SAN against the configured hostname before issuing bind requests); the trade-off is that pinning and custom verifiers require operational discipline when certificates rotate and may break legitimate failover topologies.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Apache Directory LDAP API is a Java client library widely embedded in applications that need to talk to LDAP/LDAPS directory servers (such as ApacheDS, OpenLDAP, or Active Directory). CWE-297 (Improper Validation of Certificate with Host Mismatch) indicates that the TLS handshake completes successfully against any certificate the client trusts, without confirming that the certificate's Common Name or Subject Alternative Name matches the hostname the client was instructed to connect to. The CWE class makes this a classic TLS trust-boundary defect: encryption is present, but the cryptographic identity of the peer is not bound to the intended target, breaking the security guarantee TLS is supposed to provide. The 'Buffer Overflow' tag appears inconsistent with CWE-297 and likely reflects automated tagging rather than the actual root cause.
Know when Directory Ldap Api 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
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
Primary rating from Vendor (CNA) · only source for this CVE.
CVSS VectorVendor
Lifecycle Timeline
3Description PRE-NVD
Blast Radius
ecosystem impact- 80 maven packages depend on org.apache.directory.api:api-ldap-client-api (15 direct, 65 indirect)
Ecosystem-wide dependent count for version 2.0.0.
Executive ViewAI
Apache Directory LDAP API client contains a certificate validation flaw allowing network attackers to impersonate LDAP servers and intercept authenticated directory traffic. Organizations using this library face substantial risk to the confidentiality and integrity of identity and authorization data transmitted to LDAP servers. This vulnerability affects any application relying on LDAP-based authentication or directory services without compensating network controls.
No vendor-released patch identified at time of analysis. Interim mitigations: implement network segmentation isolating LDAP client systems, enforce mutual TLS (mTLS) with certificate pinning to prevent server impersonation, restrict LDAP connections to dedicated secure network segments, deploy network monitoring to detect certificate anomalies, and maintain inventory of all systems using this library to prioritize patching upon vendor release.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
More in Directory Ldap Api
View allIn Apache Directory LDAP API before 1.0.2, a bug in the way the SSL Filter was setup made it possible for another thread
Apache Directory LDAP API before 1.0.0-M31 allows attackers to conduct timing attacks via unspecified vectors. Rated hig
EUVD-2026-33569
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB