What’s Vulnerable › Vulnerabilities
CVE-2024-5798: Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-06-12 · updated 2026-06-17
- Weakness: CWE-287
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 products
- HashiCorp Vault: from 0.11.0 before 1.15.9; from 1.16.0 before 1.16.3 — fixed in 1.15.9, 1.16.3
How to fix
Upgrade to a fixed version: HashiCorp Vault 1.15.9, 1.16.3. Check the vendor advisory for mitigations.
References
- https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770
- https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770
Get alerted when CVE-2024-5798 or the next vulnerability affects your stack