CVE-2024-5798: 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
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/github.com/hashicorp/vaultto a version that resolves this vulnerability.Fixed in 1.15.9 - Upgrade
Upgrade
go/github.com/hashicorp/vaultto a version that resolves this vulnerability.Fixed in 1.16.3 - Upgrade
Upgrade
go/github.com/hashicorp/vaultto a version that resolves this vulnerability.Fixed in 1.17.0 - Upgrade
Upgrade
Vaultto a version that resolves this vulnerability.Fixed in 1.17.0 - Upgrade
Upgrade
Vault Enterpriseto a version that resolves this vulnerability.Fixed in 1.16.3 - Upgrade
Upgrade
Vault Enterpriseto a version that resolves this vulnerability.Fixed in 1.15.9
Event History
Frequently Asked Questions
What is the severity of CVE-2024-5798?
CVE-2024-5798 has been classified as a high severity vulnerability due to improper validation of JSON Web Token audience claims.
How do I fix CVE-2024-5798?
To remediate CVE-2024-5798, upgrade to Vault version 1.15.9, 1.16.3, or 1.17.0.
What software is affected by CVE-2024-5798?
CVE-2024-5798 affects HashiCorp Vault versions from 0.11.0 to 1.15.9, 1.16.0-rc1 to 1.16.3, and the 1.17.0-rc1 release.
What types of attacks could exploit CVE-2024-5798?
CVE-2024-5798 could be exploited by allowing attackers to log in using invalid JWTs that do not match role-bound audience claims.
How does CVE-2024-5798 impact Vault security?
CVE-2024-5798 compromises the authentication integrity of Vault, potentially allowing unauthorized access if exploited.