LDAP Injection Affecting org.apache.sshd:sshd-ldap package, versions [1.2.0,2.20.0)[3.0.0-M1,3.0.0-M6)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.36% (30th 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 Learn

Learn about LDAP Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHESSHD-21816621
  • published29 Oct 2026
  • disclosed30 Sept 2026
  • creditDilrevx,Ho1aAs

Introduced: 30 Sep 2026

CVE-2026-94053  (opens in a new tab)
CWE-90  (opens in a new tab)

How to fix?

Upgrade org.apache.sshd:sshd-ldap to version 2.20.0, 3.0.0-M6 or higher.

Overview

Affected versions of this package are vulnerable to LDAP Injection in the LdapNetworkConnector class, which interpolates the supplied username and password into the LDAP search filter template without escaping RFC 4515 filter metacharacters. An attacker can authenticate as a valid directory user by sending the username * and password *, which the unescaped filter matches against any entry. This affects only SSH servers that use the optional sshd-ldap component configured for password or public key authentication.

CVSS Base Scores

version 4.0
version 3.1