# CVE-2026-59368: LdapQueryBuilder Silently Discards Existing Filter When Built From Another Query in Spring LDAP

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-02
- Aliases: CGA-mfwp-p5g6-ww47, CGA-xvph-wq9r-qgfw
- Record: https://cvemate.com/vulnerability/CVE-2026-59368 · JSON: https://cvemate.com/vulnerability/CVE-2026-59368/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.494%, percentile 44.017%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard kafbat-ui (Chainguard): All versions (No fix recorded)
- spring 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

## References

- <https://spring.io/security/cve-2026-59368>
- <https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N&version=3.1>

---

Data as of 2026-12-05T04:05:17.328Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
