{"id":"CVE-2024-5798","aliases":["BIT-vault-2024-5798","GHSA-32cj-5wx4-gq8p","GO-2024-2921","WID-SEC-W-2024-1365"],"summary":"Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims","published_at":"2024-06-12T00:00:00Z","modified_at":"2026-09-08T08:48:21.274102Z","products":[{"slug":"vault","name":"HashiCorp Vault","category":"secrets"},{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Low","vendor_ratings":[{"source":"BSI","rating":"niedrig"},{"source":"Red Hat","rating":"Low"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.00343000004068017,"percentile":0.28474000096321106,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"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","affected_stack":[{"ecosystem":"Bitnami","package":"vault","purl":"pkg:bitnami/vault","ranges":[{"type":"SEMVER","events":[{"introduced":"0.11.0"},{"fixed":"1.16.2"}]}],"fixed":["1.16.2"],"provider":"osv","source":"BIT-vault-2024-5798","relation":"self"},{"ecosystem":"CVE","package":"HashiCorp/Vault","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0"},{"fixed":"1.16.2"}]}],"fixed":["1.16.2"],"provider":"cvelistv5","source":"CVE-2024-5798","relation":"self"},{"ecosystem":"CVE","package":"HashiCorp/Vault Enterprise","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0"},{"fixed":"1.16.2"}]}],"fixed":["1.16.2"],"provider":"cvelistv5","source":"CVE-2024-5798","relation":"self"},{"ecosystem":"Go","package":"github.com/hashicorp/vault","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"],"fixed":["1.17.0"],"provider":"osv","source":"GHSA-32cj-5wx4-gq8p","relation":"self"},{"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","ranges":[{"type":"SEMVER","events":[{"introduced":"1.16.0-rc1"},{"fixed":"1.16.3"}]}],"fixed":["1.16.3"],"provider":"osv","source":"GHSA-32cj-5wx4-gq8p","relation":"self"},{"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","ranges":[{"type":"SEMVER","events":[{"introduced":"0.11.0"},{"fixed":"1.15.9"}]}],"fixed":["1.15.9"],"provider":"osv","source":"GHSA-32cj-5wx4-gq8p","relation":"self"},{"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","ranges":[{"type":"SEMVER","events":[{"introduced":"0.11.0"},{"fixed":"1.16.3"},{"introduced":"1.17.0-rc1"},{"fixed":"1.17.0"}]}],"fixed":["1.16.3","1.17.0"],"provider":"osv","source":"GO-2024-2921","relation":"self"},{"ecosystem":"NVD","package":"hashicorp:vault","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0"},{"fixed":"1.15.9"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0"},{"fixed":"1.15.9"}]},{"type":"ECOSYSTEM","events":[{"introduced":"1.16.0"},{"fixed":"1.16.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"1.16.0"},{"fixed":"1.16.3"}]}],"fixed":["1.15.9","1.15.9","1.16.3","1.16.3"],"provider":"nvd","source":"CVE-2024-5798","relation":"self"},{"ecosystem":"Red Hat:trusted_application_pipeline:1","package":"cli-v02","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-5798","relation":"self"}],"affected_other":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"affected","packages":["odf4/cephcsi-rhel9","odf4/ocs-metrics-exporter-rhel9","odf4/ocs-must-gather-rhel8","odf4/odf-multicluster-rhel9-operator","odf4/odf-rhel8-operator"],"package_count":5,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-5798"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"not_affected","packages":["odf4/mcg-cli-rhel9","odf4/mcg-rhel9-operator","odf4/ocs-rhel9-operator","odf4/odf-cli-rhel9"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-5798"},{"vendor":"Red Hat","product":"Red Hat Trusted Application Pipeline","cpe":"cpe:/a:redhat:trusted_application_pipeline:1","status":"affected","packages":["cli-v02"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2024-5798"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2024-5798","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2024-5798","license":"CC-BY-4.0","published_at":"2024-06-12T18:55:24.788Z","modified_at":"2025-11-04T16:30:51.697Z","summary":"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","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N","source":"CVE-2024-5798"}],"affected":[{"ecosystem":"CVE","package":"HashiCorp/Vault","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0"},{"fixed":"1.16.2"}]}],"fixed":["1.16.2"],"provider":"cvelistv5","source":"CVE-2024-5798","relation":"self"},{"ecosystem":"CVE","package":"HashiCorp/Vault Enterprise","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0"},{"fixed":"1.16.2"}]}],"fixed":["1.16.2"],"provider":"cvelistv5","source":"CVE-2024-5798","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770"}]},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-1365","relation":"self","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-1365","license":"TLP:CLEAR, mirroring permitted","published_at":"2024-06-12T22:00:00Z","modified_at":"2024-06-12T22:00:00Z","summary":"Hashicorp Vault: Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen","details":"Ein entfernter Angreifer mit hohen Privilegien kann eine Schwachstelle in Hashicorp Vault ausnutzen, um Sicherheitsvorkehrungen zu umgehen.\n\nVault ist ein identitätsbasiertes System zur Verwaltung von Geheimnissen und Verschlüsselung.","severity":[{"type":"BSI","score":"niedrig","source":"WID-SEC-W-2024-1365"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1365.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-1365"},{"type":"WEB","url":"https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770"}]},{"provider":"nvd","source_id":"CVE-2024-5798","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5798","severity":[],"affected":[{"ecosystem":"NVD","package":"hashicorp:vault","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0"},{"fixed":"1.15.9"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0"},{"fixed":"1.15.9"}]},{"type":"ECOSYSTEM","events":[{"introduced":"1.16.0"},{"fixed":"1.16.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"1.16.0"},{"fixed":"1.16.3"}]}],"fixed":["1.15.9","1.15.9","1.16.3","1.16.3"],"provider":"nvd","source":"CVE-2024-5798","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"BIT-vault-2024-5798","relation":"self","url":"https://osv.dev/vulnerability/BIT-vault-2024-5798","license":"Apache-2.0","published_at":"2024-06-17T07:39:45.639Z","modified_at":"2026-09-08T08:48:21.274102Z","summary":"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","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"BIT-vault-2024-5798"}],"affected":[{"ecosystem":"Bitnami","package":"vault","purl":"pkg:bitnami/vault","ranges":[{"type":"SEMVER","events":[{"introduced":"0.11.0"},{"fixed":"1.16.2"}]}],"fixed":["1.16.2"],"provider":"osv","source":"BIT-vault-2024-5798","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5798"}]},{"provider":"osv","source_id":"GHSA-32cj-5wx4-gq8p","relation":"self","url":"https://osv.dev/vulnerability/GHSA-32cj-5wx4-gq8p","license":"CC-BY-4.0","published_at":"2024-06-12T21:31:19Z","modified_at":"2026-08-07T08:12:02.364272Z","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","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N","source":"GHSA-32cj-5wx4-gq8p"}],"affected":[{"ecosystem":"Go","package":"github.com/hashicorp/vault","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"],"fixed":["1.17.0"],"provider":"osv","source":"GHSA-32cj-5wx4-gq8p","relation":"self"},{"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","ranges":[{"type":"SEMVER","events":[{"introduced":"1.16.0-rc1"},{"fixed":"1.16.3"}]}],"fixed":["1.16.3"],"provider":"osv","source":"GHSA-32cj-5wx4-gq8p","relation":"self"},{"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","ranges":[{"type":"SEMVER","events":[{"introduced":"0.11.0"},{"fixed":"1.15.9"}]}],"fixed":["1.15.9"],"provider":"osv","source":"GHSA-32cj-5wx4-gq8p","relation":"self"}],"product_status":[],"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"}]},{"provider":"osv","source_id":"GO-2024-2921","relation":"self","url":"https://osv.dev/vulnerability/GO-2024-2921","license":"CC-BY-4.0","published_at":"2024-07-01T19:59:12Z","modified_at":"2026-08-07T08:12:33.434371Z","summary":"HashiCorp Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims in github.com/hashicorp/vault","details":"HashiCorp Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims in github.com/hashicorp/vault.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/hashicorp/vault before v1.15.9.","severity":[],"affected":[{"ecosystem":"Go","package":"github.com/hashicorp/vault","purl":"pkg:golang/github.com/hashicorp/vault","ranges":[{"type":"SEMVER","events":[{"introduced":"0.11.0"},{"fixed":"1.16.3"},{"introduced":"1.17.0-rc1"},{"fixed":"1.17.0"}]}],"fixed":["1.16.3","1.17.0"],"provider":"osv","source":"GO-2024-2921","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-32cj-5wx4-gq8p"},{"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"}]},{"provider":"redhat-vex","source_id":"CVE-2024-5798","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2024-5798","license":"CC-BY-4.0","published_at":"2024-06-12T00:00:00Z","modified_at":"2026-03-16T08:31:27Z","summary":"github.com/hashicorp/vault: HashiCorp Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims in github.com/hashicorp/vault","details":"A flaw was found in Hashicorp Vault. 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 issue 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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N","source":"CVE-2024-5798"},{"type":"Red Hat","score":"Low","source":"CVE-2024-5798"}],"affected":[{"ecosystem":"Red Hat:trusted_application_pipeline:1","package":"cli-v02","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-5798","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"affected","packages":["odf4/cephcsi-rhel9","odf4/ocs-metrics-exporter-rhel9","odf4/ocs-must-gather-rhel8","odf4/odf-multicluster-rhel9-operator","odf4/odf-rhel8-operator"],"package_count":5,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-5798"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"not_affected","packages":["odf4/mcg-cli-rhel9","odf4/mcg-rhel9-operator","odf4/ocs-rhel9-operator","odf4/odf-cli-rhel9"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-5798"},{"vendor":"Red Hat","product":"Red Hat Trusted Application Pipeline","cpe":"cpe:/a:redhat:trusted_application_pipeline:1","status":"affected","packages":["cli-v02"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2024-5798"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-5798.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-5798"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2295062"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-5798"},{"type":"WEB","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":"WEB","url":"https://github.com/advisories/GHSA-32cj-5wx4-gq8p"}]}],"references":[{"type":"WEB","url":"https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770"},{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1365.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-1365"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5798"},{"type":"PACKAGE","url":"https://github.com/hashicorp/vault"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2024-2921"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-32cj-5wx4-gq8p"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-5798.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-5798"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2295062"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-5798"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2024-5798","url":"https://www.cve.org/CVERecord?id=CVE-2024-5798","license":"CC-BY-4.0","modified_at":"2025-11-04T16:30:51.697Z","relation":"self"},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-1365","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-1365","license":"TLP:CLEAR, mirroring permitted","modified_at":"2024-06-12T22:00:00Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2024-5798","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5798","relation":"self"},{"provider":"osv","source_id":"BIT-vault-2024-5798","url":"https://osv.dev/vulnerability/BIT-vault-2024-5798","license":"Apache-2.0","modified_at":"2026-09-08T08:48:21.274102Z","relation":"self"},{"provider":"osv","source_id":"GHSA-32cj-5wx4-gq8p","url":"https://osv.dev/vulnerability/GHSA-32cj-5wx4-gq8p","license":"CC-BY-4.0","modified_at":"2026-08-07T08:12:02.364272Z","relation":"self"},{"provider":"osv","source_id":"GO-2024-2921","url":"https://osv.dev/vulnerability/GO-2024-2921","license":"CC-BY-4.0","modified_at":"2026-08-07T08:12:33.434371Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2024-5798","url":"https://access.redhat.com/security/cve/CVE-2024-5798","license":"CC-BY-4.0","modified_at":"2026-03-16T08:31:27Z","relation":"self"}]}
