Spring LDAP vulnerabilities
4 vulnerabilities
Known vulnerabilities in Spring LDAP, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.
RoutineCVE-2026-59368spring · spring ldap +1 moreLdapQueryBuilder Silently Discards Existing Filter When Built From Another Query in Spring LDAPLdapQueryBuilder can lose a search filter that an application expects to be enforced, causing an LDAP search to run with broader criteria than intended.
When a builder is created from an existing query, the filter carried over from that query is not treated as established. A later call that specifies a filter then replaces the carried-over filter instead of being rejected, so the original criteria are dropped without any error. The fix turns this into an IllegalStateException .
Preconditions :
The application derives one LdapQueryBuilder from another query and then specifies a further filter on the derived builder
The dropped filter is what restricts the search, for example to a single tenant, organizational unit, or set of entries
When the dropped filter was acting as an authorization boundary, an authenticated user can read directory entries outside the scope the application intended.CVSS6.5MediumEPSS0.49%PrioritiseCVE-2026-59367spring · spring ldapEmbedded Test LDAP Server Binds to All Network Interfaces with a Hardcoded Administrative Credential in Spring LDAPThe embedded LDAP server provided by the spring-ldap-test artifact listens on every network interface of the host and accepts a fixed, publicly known administrative credential.
EmbeddedLdapServer is intended as a test fixture for the machine that runs it. However, its listener is not restricted to the loopback interface, and its administrative bind credential is built into the library rather than supplied by the application. Anyone who can reach the listening port can therefore authenticate as the directory administrator.
Preconditions :
The application or test suite starts an EmbeddedLdapServer (directly or through Spring LDAP's test support)
The host running it is reachable over the network by an untrusted party, for example a shared CI agent, a shared development network, or a container with a published port
An attacker who can reach the port can read, add, modify, and delete entries in the embedded directory, and can disrupt tests that depend on its contents.CVSS9.4CriticalEPSS0.53%PrioritiseCVE-2026-41720spring · spring ldap +8 moreAuthentication Bypass with Empty Password in Spring LDAPSpring LDAP's DirContextAuthenticationStrategy implementations do not reject a bind request where a non-empty username is paired with an empty or null password.
Affected versions:
Spring LDAP 2.4.0 through 2.4.4; 3.2.0 through 3.2.17; 3.3.0 through 3.3.7; 4.0.0 through 4.0.3.CVSS7.4HighEPSS0.26%RoutineCVE-2024-38829spring · spring ldap +9 moreSpring LDAP sensitive data exposure for case-sensitive comparisonsA vulnerability in Spring LDAP allows data exposure for case sensitive comparisons.This issue affects Spring LDAP: from 2.4.0 through 2.4.3, from 3.0.0 through 3.0.9, from 3.1.0 through 3.1.7, from 3.2.0 through 3.2.7, AND all versions prior to 2.4.0.
The usage of String.toLowerCase() and String.toUpperCase() has some Locale dependent exceptions that could potentially result in unintended columns from being queried
Related to CVE-2024-38820 https://spring.io/security/cve-2024-38820CVSS3.7LowEPSS0.37%