{"id":"GHSA-32cj-5wx4-gq8p","summary":"HashiCorp Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims","details":"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.\n\nThis vulnerability, CVE-2024-5798, was fixed in Vault and Vault Enterprise 1.17.0, 1.16.3, and 1.15.9","aliases":["BIT-vault-2024-5798","CVE-2024-5798","GO-2024-2921"],"modified":"2026-08-07T08:12:02.364272330Z","published":"2024-06-12T21:31:19Z","database_specific":{"github_reviewed_at":"2024-06-12T22:25:55Z","nvd_published_at":"2024-06-12T19:15:51Z","cwe_ids":["CWE-285"],"severity":"LOW","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5798"},{"type":"WEB","url":"https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770"},{"type":"PACKAGE","url":"https://github.com/hashicorp/vault"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2024-2921"}],"affected":[{"package":{"name":"github.com/hashicorp/vault","ecosystem":"Go","purl":"pkg:golang/github.com/hashicorp/vault"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.17.0-rc1"},{"fixed":"1.17.0"}]}],"versions":["1.17.0-rc1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-32cj-5wx4-gq8p/GHSA-32cj-5wx4-gq8p.json"}},{"package":{"name":"github.com/hashicorp/vault","ecosystem":"Go","purl":"pkg:golang/github.com/hashicorp/vault"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.16.0-rc1"},{"fixed":"1.16.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-32cj-5wx4-gq8p/GHSA-32cj-5wx4-gq8p.json"}},{"package":{"name":"github.com/hashicorp/vault","ecosystem":"Go","purl":"pkg:golang/github.com/hashicorp/vault"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.11.0"},{"fixed":"1.15.9"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-32cj-5wx4-gq8p/GHSA-32cj-5wx4-gq8p.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N"}]}