Improper Neutralization Affecting github.com/hashicorp/vault/builtin/credential/ldap package, versions >=1.10.0 <1.20.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (7th 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-GITHUBCOMHASHICORPVAULTBUILTINCREDENTIALLDAP-11502060
  • published7 Aug 2025
  • disclosed6 Aug 2025
  • creditYarden Porat

Introduced: 6 Aug 2025

NewCVE-2025-6013  (opens in a new tab)
CWE-156  (opens in a new tab)

How to fix?

Upgrade github.com/hashicorp/vault/builtin/credential/ldap to version 1.20.2 or higher.

Overview

github.com/hashicorp/vault/builtin/credential/ldap is a package ldap for Hashicorp.

Affected versions of this package are vulnerable to Improper Neutralization in the ldap authentication method when username_as_alias is enabled and a user has multiple CNs that are equal except for leading or trailing spaces. An attacker can bypass multi-factor authentication enforcement by exploiting discrepancies in username handling.

CVSS Base Scores

version 4.0
version 3.1