Incorrect Authorization Affecting org.springframework.ldap:spring-ldap-core package, versions [,4.0.7)[4.1.0-M1,4.1.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

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 applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKLDAP-22732222
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditUnknown

Introduced: 19 Nov 2026

NewCVE-2026-59368  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade org.springframework.ldap:spring-ldap-core to version 4.0.7, 4.1.3 or higher.

Overview

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.

Workaround

This vulnerability can be avoided by using LdapQueryBuilder.withQuery(LdapQuery), which copies all query fields except the filter, instead of the deprecated fromQuery(LdapQuery).

CVSS Base Scores

version 4.0
version 3.1