LDAP Injection Affecting github.com/openbao/openbao/builtin/logical/openldap package, versions <2.5.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.53% (43rd 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-GOLANG-GITHUBCOMOPENBAOOPENBAOBUILTINLOGICALOPENLDAP-17706590
  • published30 Jun 2026
  • disclosed19 Jun 2026
  • creditUnknown

Introduced: 19 Jun 2026

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

How to fix?

Upgrade github.com/openbao/openbao/builtin/logical/openldap to version 2.5.5 or higher.

Overview

Affected versions of this package are vulnerable to LDAP Injection in the GetUserDN process due to improper escaping of user-controlled input when constructing LDAP search filters. An attacker can impersonate arbitrary users, including administrative accounts, by injecting crafted input into the username field during authentication. This is only exploitable if the LDAP authentication backend is enabled and the attacker can supply input to the login process.

Workaround

This vulnerability can be mitigated by configuring the LDAP service account with the least privileges necessary and using explicit attribute constraints in the user filter to limit the search scope.

CVSS Base Scores

version 4.0
version 3.1