CVE-2026-59368: LdapQueryBuilder Silently Discards Existing Filter When Built From Another Query in Spring LDAP
Vulnerability summary
CVE-2026-59368 is a medium (CVSS 6.5) vulnerability in spring spring ldap. EPSS estimates a 0.49% chance of exploitation in the next 30 days, higher than 44% of scored vulnerabilities.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 02-12-2026PublishedVulnerability first disclosed.
Description
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 metrics
2 scores · 2 sources · 1 version- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.49%
Chance of exploitation in the next 30 days
Percentile
44%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard1 product
- kafbat-uiAll versions (No fix recorded)
Spring1 product
- spring ldap≥ 4.1.0, < 4.1.2.1 | ≥ 4.0.0, < 4.0.6.1 | ≥ 3.3.0, < 3.3.10 | ≥ 3.1.0, < 3.2.20 | ≥ 4.1.0, < 4.1.3 | ≥ 4.0.0, < 4.0.7
2 vendors · 2 products