CVE-2024-5798
HIGH 7.5CVSS 3.1HashiCorp Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims
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
- Published
- 12 Jun 2024
- Last modified
- 7 Aug 2026
- Assigned by
- security@hashicorp.com
- NVD status
- Modified
- Weakness
- CWE-285CWE-287
- Also known as
- BIT-vault-2024-5798GHSA-32cj-5wx4-gq8pGO-2024-2921
- Sources
- NVDJSONOSV GHSA-32cj-5wx4-gq8pJSONOSV GO-2024-2921JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | security@hashicorp.com (Secondary) | CVSS 3.1 | LOW 2.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 2.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:* |
>= 0.11.0, < 1.15.9 | 1.15.9 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 0.11.0, < 1.15.9 | 1.15.9 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:* |
>= 1.16.0, < 1.16.3 | 1.16.3 |
| NVD | hashicorp | vaultcpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:* |
>= 1.16.0, < 1.16.3 | 1.16.3 |
| OSV | Go | github.com/hashicorp/vault | >= 1.17.0-rc1, < 1.17.0 | 1.17.0 |
| OSV | Go | github.com/hashicorp/vault | >= 1.16.0-rc1, < 1.16.3 | 1.16.3 |
| OSV | Go | github.com/hashicorp/vault | >= 0.11.0, < 1.15.9 | 1.15.9 |
| OSV | Go | github.com/hashicorp/vault | >= 0.11.0, < 1.16.3; >= 1.17.0-rc1, < 1.17.0 | 1.16.3, 1.17.0 |
References
- https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-5798 · ADVISORY
- https://github.com/hashicorp/vault · PACKAGE
- https://pkg.go.dev/vuln/GO-2024-2921 · WEB
- https://github.com/advisories/GHSA-32cj-5wx4-gq8p · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 12 Jun 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Jul 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 12 Jun 2024)