# CVE-2024-5798: Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims

- Severity: Low 2.6 (CVSS:3.1, scored by HashiCorp) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 39% of CVEs (2026-11-30)
- Published: 2024-06-12T18:55:24.788Z
- Modified: 2026-09-08T08:48:21.274Z
- Also known as: GHSA-32cj-5wx4-gq8p, BIT-VAULT-2024-5798, GO-2024-2921
- Weaknesses: CWE-285, CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: HashiCorp

## Description

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

(As written by CVE List.)

## Affected

- HashiCorp Vault: from 0.11.0 before 1.16.2; from 0.11.0 before 1.15.9; from 1.16.0 before 1.16.3
- HashiCorp Vault Enterprise: from 0.11.0 before 1.16.2
- github.com/hashicorp/vault (Go): from 1.17.0-rc1 before 1.17.0; from 1.16.0-rc1 before 1.16.3; from 0.11.0 before 1.15.9; from 0.11.0 before 1.16.3
- vault (Bitnami): from 0.11.0 before 1.16.2

## Every score

- HashiCorp: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5798> (advisory, web)
- <https://github.com/hashicorp/vault> (package)
- <https://pkg.go.dev/vuln/GO-2024-2921> (web)
- <https://github.com/advisories/GHSA-32cj-5wx4-gq8p> (advisory)

## Sources

- CVE List: [CVE-2024-5798](https://www.cve.org/CVERecord?id=CVE-2024-5798), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-32cj-5wx4-gq8p](https://github.com/advisories/GHSA-32cj-5wx4-gq8p), CC-BY-4.0, modified 2026-08-07
- Go Vulnerability Database: [GO-2024-2921](https://pkg.go.dev/vuln/GO-2024-2921), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2024-5798](https://nvd.nist.gov/vuln/detail/CVE-2024-5798), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-VAULT-2024-5798](https://osv.dev/vulnerability/BIT-VAULT-2024-5798), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-5798 · Whole record: https://cve.day/CVE-2024-5798.json · Rebuilt by cve.day 2026-11-25T22:58:41.762Z
