CVE-2024-5798 Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims
Attackers can bypass authentication in HashiCorp Vault by exploiting improper JWT audience validation, allowing unauthorized access to protected resources.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-5798?
CVE-2024-5798 is a low-severity authentication bypass vulnerability in Hashicorp Vault, published on 12 Jun 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official 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
Weakness: CWE-287
Which versions are affected by CVE-2024-5798?
8 open source packages ship an affected version, including github.com/hashicorp/vault and vault. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/hashicorp/vault Go | From 0.11.0 | 1.16.3, 1.17.0 |
github.com/hashicorp/vault Go | From 0.11.0 | 1.15.9 |
github.com/hashicorp/vault Go | From 0.11.0 | 1.15.9 |
github.com/hashicorp/vault Go | From 1.16.0-rc1 | 1.16.3 |
github.com/hashicorp/vault Go | From 1.16.0-rc1 | 1.16.3 |
github.com/hashicorp/vault Go | From 1.17.0-rc1 | 1.17.0 |
2 more packages
github.com/hashicorp/vault Go | From 1.17.0-rc1 | 1.17.0 |
vault Bitnami | From 0.11.0 | 1.16.2 |
Products include Hashicorp Vault.
How do I fix CVE-2024-5798?
Upgrade github.com/hashicorp/vault to a fixed version for your release line: 1.16.3, 1.17.0 or 1.15.9.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2024-5798 being exploited?
There is no known exploitation of CVE-2024-5798 in the wild and no public exploit code.
Other vulnerabilities in Hashicorp Vault
Sources
Also known as BIT-vault-2024-5798, GHSA-32cj-5wx4-gq8p, GO-2024-2921.