In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade org.springframework.ldap:spring-ldap-core to version 4.0.7, 4.1.3 or higher.
org.springframework.ldap:spring-ldap-core is a maven plugin for LDAP for Sping.
Affected versions of this package are vulnerable to Incorrect Authorization in the LdapQueryBuilder class, whose fromQuery(LdapQuery) does not mark the filter inherited from the source query as established, so a subsequent filter(...) call on the derived builder silently discards it. When the discarded filter is what constrains the search to a tenant or organizational-unit boundary, an authenticated user can read directory entries outside the intended scope. This requires the application to build one LdapQueryBuilder from another query and then set a further filter on it.
This vulnerability can be avoided by using LdapQueryBuilder.withQuery(LdapQuery), which copies all query fields except the filter, instead of the deprecated fromQuery(LdapQuery).