CVE-2024-5798
LOW2.6EPSS 0.28%HashiCorp Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims
Published: 6/12/2024Modified: 2/4/2026
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
Affected packages (3)
- Bitnami/vault>= 0.11.0, < 1.16.2
- Go/github.com/hashicorp/vault>= 1.17.0-rc1, < 1.17.0
- Go/github.com/hashicorp/vault>= 0.11.0, < 1.16.3, >= 1.17.0-rc1, < 1.17.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | LOW2.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N |
References (5)
- ADVISORYhttps://github.com/advisories/GHSA-32cj-5wx4-gq8p
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-5798
- PATCHhttps://github.com/hashicorp/vault
- WEBhttps://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770
- WEBhttps://pkg.go.dev/vuln/GO-2024-2921