Incorrect Implementation of Authentication Algorithm Affecting org.springframework.ldap:spring-ldap-core package, versions [2.4.0, 3.0.0)[3.2.0, 3.3.8)[4.0.0-M1, 4.0.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKLDAP-17260845
  • published9 Jun 2026
  • disclosed8 Jun 2026
  • creditUnknown

Introduced: 8 Jun 2026

NewCVE-2026-41720  (opens in a new tab)
CWE-303  (opens in a new tab)

How to fix?

Upgrade org.springframework.ldap:spring-ldap-core to version 3.0.0, 3.3.8, 4.0.4 or higher.

Overview

org.springframework.ldap:spring-ldap-core is a maven plugin for LDAP for Sping.

Affected versions of this package are vulnerable to Incorrect Implementation of Authentication Algorithm via LDAP authentication handling in DirContextAuthenticationStrategy implementations. An attacker can bypass password verification by authenticating with a valid username and an empty or null password when the underlying LDAP server permits unauthenticated binds. Because there is no rejection for such bind requests, authentication may succeed without proof of knowledge of the user's password.

Note:

1)This affects authentication flows using AbstractContextSource, LdapTemplate, and LdapClient.

  1. This is only exploitable if the target LDAP server permits unauthenticated binds as defined in RFC 4513 Section 5.1.2.

CVSS Base Scores

version 4.0
version 3.1