Incorrect Implementation of Authentication Algorithm Affecting github.com/hashicorp/vault-plugin-auth-jwt package, versions <0.20.3


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th 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-GITHUBCOMHASHICORPVAULTPLUGINAUTHJWT-7251358
  • published13 Jun 2024
  • disclosed12 Jun 2024
  • creditKacper Stysiński, Alex Scheel

Introduced: 12 Jun 2024

CVE-2024-5798  (opens in a new tab)
CWE-303  (opens in a new tab)

How to fix?

Upgrade github.com/hashicorp/vault-plugin-auth-jwt to version 0.20.3 or higher.

Overview

github.com/hashicorp/vault-plugin-auth-jwt is a standalone backend plugin that allows for JWTs (including OIDC tokens) to authenticate with Vault.

Affected versions of this package are vulnerable to Incorrect Implementation of Authentication Algorithm when validating an audience claim in the JWT auth method. An attacker can authenticate with an invalid login by sending an audience claim comprising multiple strings. This implementation was found to be inconsistent with RFC 7519.

CVSS Scores

version 3.1