{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-5798","id":"CVE-2024-5798","title":"Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims","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","descriptionLong":"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","published":"2024-06-12T18:55:24.788Z","updated":"2026-10-28T02:30:33.685478126Z","reserved":"2024-06-10T15:46:30.387Z","status":"Modified","rejected":false,"assigner":"HashiCorp","metric":{"version":"3.1","score":2.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N","rating":"low","source":"HashiCorp"},"metrics":[{"version":"3.1","score":2.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N","rating":"low","source":"HashiCorp"},{"version":"3.1","score":2.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N","rating":"low","source":"hashicorp.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":2.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N","rating":"low","source":"OSV"},{"version":"3.1","score":2.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N","rating":"low","source":"GitHub"}],"rating":"low","products":["HashiCorp Vault","HashiCorp Vault Enterprise"],"affectedProducts":[{"vendor":"HashiCorp","product":"Vault","defaultStatus":"unaffected","versions":[{"changes":[{"at":"1.15.9","status":"unaffected"},{"at":"1.14.13","status":"unaffected"}],"lessThan":"1.16.2","status":"affected","version":"0.11.0","versionType":"semver"}],"platforms":["64 bit","32 bit","x86","ARM","MacOS","Windows","Linux"]},{"vendor":"HashiCorp","product":"Vault Enterprise","defaultStatus":"unaffected","versions":[{"changes":[{"at":"1.15.9","status":"unaffected"},{"at":"1.14.13","status":"unaffected"}],"lessThan":"1.16.2","status":"affected","version":"0.11.0","versionType":"semver"}],"platforms":["64 bit","32 bit","x86","ARM","MacOS","Windows","Linux"]}],"packages":[{"ecosystem":"Go","name":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","ranges":[">=1.17.0-rc1 <1.17.0",">=1.16.0-rc1 <1.16.3",">=0.11.0 <1.15.9",">=0.11.0 <1.16.3"],"fixed":["1.17.0","1.16.3","1.15.9"],"advisory":"GHSA-32cj-5wx4-gq8p"}],"cwes":["CWE-287","CWE-285"],"aliases":["BIT-vault-2024-5798","GHSA-32cj-5wx4-gq8p","GO-2024-2921"],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770","tags":["x_transferred","Vendor Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5798.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5798","tags":["advisory"]},{"url":"https://github.com/hashicorp/vault","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2024-2921","tags":["web"]},{"url":"https://github.com/advisories/GHSA-32cj-5wx4-gq8p","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00343,"epssPercentile":0.28474,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-5798","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5798","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-5798","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-32cj-5wx4-gq8p","ok":true,"note":"GHSA-32cj-5wx4-gq8p"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-5798","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}