Improper Handling of Case Sensitivity Affecting github.com/hashicorp/vault/builtin/credential/userpass package, versions >=1.13.0 <1.20.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (4th 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-GITHUBCOMHASHICORPVAULTBUILTINCREDENTIALUSERPASS-11426517
  • published3 Aug 2025
  • disclosed1 Aug 2025
  • creditYarden Porat

Introduced: 1 Aug 2025

NewCVE-2025-6004  (opens in a new tab)
CWE-178  (opens in a new tab)

How to fix?

Upgrade github.com/hashicorp/vault/builtin/credential/userpass to version 1.20.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity via the pathLoginAliasLookahead implementation. An attacker can gain unauthorized access and bypass authentication restrictions by leveraging inconsistent case-sensitivity checks.

CVSS Base Scores

version 4.0
version 3.1