Every CVESearch/Get API key

CVE-2026-59368

LdapQueryBuilder Silently Discards Existing Filter When Built From Another Query in Spring LDAP

Explain with AI
ChatGPTClaudeGoogle AI
Severity
6.5Medium
Network attack, low privileges, no user interactionCVSS 3.1, CVE List
Exploitation
Unknown
No source reports exploitation yet.
Exploit chance
0.49% in 30 days
Percentile44th
EPSS, scored
Listed fix
None listed
No source lists a fixed version in its version data.Check the description and references.

Overview

LdapQueryBuilder 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.

CVSS 3.1 vector

Exploitability

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

Impact

Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Exploit chance over time

Unchanged since Dec 2, 2026
EPSS score 0.49% every day from Dec 2, 2026 to Dec 4, 2026.

Affected

Products 1

Sources

CVE List Score usedCVSS 3.16.5

LdapQueryBuilder Silently Discards Existing Filter When Built From Another Query in Spring LDAP

LdapQueryBuilder 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.

Record
CVE-2026-59368
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-12-02
EUVDEUVD-2026-140866CVSS 3.16.5

LdapQueryBuilder 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.

Record
EUVD-2026-140866
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-12-02
GitHub AdvisoriesGHSA-g5v6-9698-pcfxCVSS 3.16.5

LdapQueryBuilder can lose a search filter that an application expects to be enforced, causing an...

LdapQueryBuilder 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.

Record
GHSA-g5v6-9698-pcfx
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-12-02
NVDCVSS 3.16.5

LdapQueryBuilder 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.

Record
CVE-2026-59368
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-12-02

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Published dateEUVD
Published dateEUVD
Other IDs, referencesGitHub Advisories
Other IDs, published dateEUVD, NVD
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open