Home › Vulnerabilities › Spring
Spring LDAP flaws: exposed embedded test server with fixed admin login, and dropped query filters
NVD published two Spring LDAP vulnerabilities on 2026-12-02. The critical one (CVE-2026-59367) lets anyone who can reach the embedded test LDAP server's port sign in as directory administrator, and the medium one (CVE-2026-59368) can silently drop a search filter in LdapQueryBuilder.
What to look into
- 2 vulnerabilities in Spring LDAP: 1 critical, 1 medium (CVSS up to 9.4).
- None of them is known to be exploited yet.
- Start with CVE-2026-59367 (9.4 critical): The embedded LDAP server provided by the spring-ldap-test artifact listens on every network interface of the host and accepts a fixed, publicly known administrative credential. EmbeddedLdapServer is… An attacker without an account can exploit this over the network, without any user action.
- 1 of 2 can be attacked over the network without logging in, 1 of them without anyone clicking anything.
Key points
- CVE-2026-59367 is rated CRITICAL (CVSS 9.4): the embedded LDAP test server listens on all interfaces and accepts a fixed, publicly known admin credential.
- Anyone who can reach the port can read, add, modify, and delete directory entries, per the record.
- CVE-2026-59368 is rated MEDIUM (CVSS 6.5): deriving an LdapQueryBuilder can silently drop a restricting filter.
- The fix for CVE-2026-59368 reportedly raises an IllegalStateException instead of dropping the filter.
- The records give no fixed version, workaround, or evidence of exploitation.
Two unrelated flaws with different risk levels
The batch contains two Spring LDAP vulnerabilities published by NVD on 2026-12-02. They have different mechanisms and severities. One is a critical exposure in a test fixture, and the other is a medium-severity logic flaw in query building.
CVE-2026-59367: critical exposure of the embedded LDAP server
According to the NVD record, the EmbeddedLdapServer provided by the spring-ldap-test artifact listens on every network interface of the host, not only the loopback interface. It also accepts a fixed, publicly known administrative credential that is built into the library rather than supplied by the application. Anyone who can reach the listening port can authenticate as the directory administrator, then read, add, modify, and delete entries and disrupt tests that depend on them. The record rates it CRITICAL with a CVSS score of 9.4. Exposure requires that an application or test suite starts the server and that the host is reachable by an untrusted party, such as a shared CI agent, a shared development network, or a container with a published port.
CVE-2026-59368: dropped filter in LdapQueryBuilder
The second record, rated MEDIUM (CVSS 6.5), concerns LdapQueryBuilder. 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 replaces it without an error, so the search runs with broader criteria than intended. If the dropped filter was acting as an authorization boundary, such as a single tenant or organizational unit, an authenticated user may read entries outside the intended scope. The record says the fix turns this condition into an IllegalStateException.
What the records do not state
Neither record names a fixed version or a workaround. Neither states that either flaw has been exploited in the wild.
What to do
- Keep EmbeddedLdapServer off networks that untrusted parties can reach, such as shared CI agents, shared development networks, or containers with published ports.
- Review code that derives an LdapQueryBuilder from another query and then adds a filter, especially where that filter limits access.
- Check the Spring LDAP release notes or NVD entries for a fixed version, since the records do not name one.
The 2 vulnerabilities
- CVE-2026-59367 9.4 The embedded LDAP server provided by the spring-ldap-test artifact listens on every network interface of the host and accepts a fixed, publicly known administrative credential. EmbeddedLdapServer is intended as a test fixture for the machi…
- CVE-2026-59368 6.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 qu…
Frequently asked questions
How many Spring LDAP vulnerabilities were published on December 2, 2026?
2 vulnerabilities: 1 critical, 1 medium, with CVSS scores up to 9.4.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-59367 (CVSS 9.4): The embedded LDAP server provided by the spring-ldap-test artifact listens on every network interface of the host and accepts a fixed, publicly known administrative credential. EmbeddedLdapServer is…