{"cve":"CVE-2024-5798","nvd":{"published":"2024-06-12T19:15:51.413","modified":"2026-06-17T08:16:40.123","status":"Modified","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.\n\nThis vulnerability, CVE-2024-5798, was fixed in Vault and Vault Enterprise 1.17.0, 1.16.3, and 1.15.9","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-287"],"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"],"products":["hashicorp:vault"],"source":"nvd","synced_at":"2026-10-19T21:51:20.603330631+00:00"},"epss":{"cve":"CVE-2024-5798","score":0.00343,"percentile":0.27909,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-32cj-5wx4-gq8p","url":"https://osv.dev/vulnerability/GHSA-32cj-5wx4-gq8p","summary":"HashiCorp Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims","modified":"2026-08-07T08:12:02.364272330Z","packages":[{"ecosystem":"Go","name":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","ranges":[">=1.17.0-rc1 <1.17.0"],"fixed":["1.17.0"]},{"ecosystem":"Go","name":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","ranges":[">=1.16.0-rc1 <1.16.3"],"fixed":["1.16.3"]},{"ecosystem":"Go","name":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","ranges":[">=0.11.0 <1.15.9"],"fixed":["1.15.9"]}]},{"id":"GO-2024-2921","url":"https://osv.dev/vulnerability/GO-2024-2921","summary":"HashiCorp Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims in github.com/hashicorp/vault","modified":"2026-08-07T08:12:33.434371586Z","packages":[{"ecosystem":"Go","name":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","ranges":[">=0.11.0 <1.16.3",">=1.17.0-rc1 <1.17.0"],"fixed":["1.16.3","1.17.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}