Intel

AIKIDO-2026-11164

spring-ldap-core is vulnerable to Improper Validation of Certificate with Host Mismatch

CVE-2026-41720Published Jun 11, 2026
June 11, 2026

74

CVE Score

High

Improper Validation of Certificate with Host Mismatch

Are you affected? Scan for Free

TL;DR

Spring LDAP's DirContextAuthenticationStrategy implementations do not reject a bind request where a non-empty username is paired with an empty or null password. RFC 4513 Section 5.1.2 defines this as an unauthenticated bind. On LDAP servers that permit such binds, an attacker with a valid username and an empty password can bypass password verification.

How do I fix this?

Upgrade the org.springframework.ldap:spring-ldap-core library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.0.0 - 3.3.7

Fixed in 3.3.8

4.0.0 - 4.0.3

Fixed in 4.0.4

Background info

spring-ldap-core is vulnerable to Improper Validation of Certificate with Host Mismatch in versions 0.0.0 - 3.3.7 and 4.0.0 - 4.0.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea