---
id: CVE-2024-5798
aliases:
  - GHSA-32cj-5wx4-gq8p
  - BIT-vault-2024-5798
  - GO-2024-2921
title: HashiCorp Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims
summary: HashiCorp Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims
severity: low
cvss: 2.6
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N'
vendor: hashicorp
product: github.com/hashicorp/vault
ecosystem: go
affected:
  - 'github.com/hashicorp/vault >= 1.17.0-rc1, < 1.17.0'
  - 'github.com/hashicorp/vault >= 1.16.0-rc1, < 1.16.3'
  - 'github.com/hashicorp/vault >= 0.11.0, < 1.15.9'
patched:
  - github.com/hashicorp/vault 1.17.0
  - github.com/hashicorp/vault 1.16.3
  - github.com/hashicorp/vault 1.15.9
published: '2024-06-12'
updated: '2026-08-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-32cj-5wx4-gq8p'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-5798'
  - url: >-
      https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770
  - url: 'https://github.com/hashicorp/vault'
  - url: 'https://pkg.go.dev/vuln/GO-2024-2921'
tags:
  - osv
  - go
epss: 0.00343
epssPercentile: 0.25074
ingestedAt: '2026-08-07T19:14:15.536Z'
---

## Overview

Vault and Vault Enterprise did not properly validate the JSON Web Token (JWT) role-bound audience claim when using the Vault JWT auth method. This may have resulted in Vault validating a JWT the audience and role-bound claims do not match, allowing an invalid login to succeed when it should have been rejected.

This vulnerability, CVE-2024-5798, was fixed in Vault and Vault Enterprise 1.17.0, 1.16.3, and 1.15.9

## Affected packages

- `github.com/hashicorp/vault >= 1.17.0-rc1, < 1.17.0`
- `github.com/hashicorp/vault >= 1.16.0-rc1, < 1.16.3`
- `github.com/hashicorp/vault >= 0.11.0, < 1.15.9`

## Remediation

Upgrade to a patched release:

- `github.com/hashicorp/vault 1.17.0`
- `github.com/hashicorp/vault 1.16.3`
- `github.com/hashicorp/vault 1.15.9`
