Skip to content
Heist/ feed
Back to feed
Low

Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims

Type: advisorySources: OSV

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-5798
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 08:06 UTC · Revision 1

Source evidence

Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims

core-osv · Original source

Published 12 Jun 2024, 18:55 UTC

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

osv:CVE-2024-5798
Complete source record
{
  "id": "f81de74cb4ac574da7d8431a24640d0319a783accfc9561d64b6b7832f6d3276",
  "url": "https://osv.dev/vulnerability/CVE-2024-5798",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims",
    "summary": "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",
    "evidence": "osv:CVE-2024-5798",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2024-5798",
      "aliases": [
        "BIT-vault-2024-5798",
        "CVE-2024-5798",
        "GHSA-32cj-5wx4-gq8p",
        "GO-2024-2921"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/hashicorp/vault",
              "type": "GIT",
              "events": [
                {
                  "introduced": "87492f9258e0227f3717e3883c6a8be5716bf564"
                },
                {
                  "fixed": "d93899cf3e387f6ba4448953d9347571d819de62"
                },
                {
                  "introduced": "c20eae3e84c55bf5180ac890b83ee81c9d7ded8b"
                },
                {
                  "fixed": "e92d9a57018f43360e2e3717b3b6a7f650c88f4c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:*",
                    "range": [
                      {
                        "introduced": "0.11.0"
                      },
                      {
                        "fixed": "1.15.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "0.11.0"
                      },
                      {
                        "fixed": "1.15.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:*",
                    "range": [
                      {
                        "introduced": "1.16.0"
                      },
                      {
                        "fixed": "1.16.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "1.16.0"
                      },
                      {
                        "fixed": "1.16.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.15.8+ent",
            "ent-changelog-1.15.8",
            "v1.16.2",
            "v1.16.1",
            "v1.15.7+ent",
            "ent-changelog-1.15.7",
            "v1.16.0",
            "v1.15.6",
            "v1.15.5",
            "v1.15.4",
            "v1.15.3",
            "v1.15.2",
            "v1.15.1",
            "sdk/v0.10.2",
            "v1.15.0",
            "v1.15.0-rc1",
            "api/auth/userpass/v0.5.0",
            "api/auth/ldap/v0.5.0",
            "api/auth/kubernetes/v0.5.0",
            "api/auth/gcp/v0.5.0",
            "api/auth/azure/v0.5.0",
            "api/auth/aws/v0.5.0",
            "api/auth/approle/v0.5.0",
            "sdk/v0.10.0",
            "api/v1.10.0",
            "sdk/v0.9.2",
            "api/auth/userpass/v0.4.1",
            "api/auth/ldap/v0.4.1",
            "api/auth/kubernetes/v0.4.1",
            "api/auth/gcp/v0.4.1",
            "api/auth/azure/v0.4.1",
            "api/auth/aws/v0.4.1",
            "api/auth/approle/v0.4.1",
            "sdk/v0.9.1",
            "api/v1.9.2",
            "api/v1.9.1",
            "sdk/v0.9.0",
            "api/auth/userpass/v0.4.0",
            "api/auth/ldap/v0.4.0",
            "api/auth/kubernetes/v0.4.0",
            "api/auth/gcp/v0.4.0",
            "api/auth/azure/v0.4.0",
            "api/auth/aws/v0.4.0",
            "api/auth/approle/v0.4.0",
            "sdk/v0.8.0",
            "api/v1.9.0",
            "api/v1.8.3",
            "sdk/v0.7.0",
            "sdk/v0.6.2",
            "sdk/v0.6.1",
            "api/v1.8.2",
            "api/v1.8.1",
            "api/auth/userpass/v0.3.0",
            "api/auth/ldap/v0.3.0",
            "api/auth/kubernetes/v0.3.0",
            "api/auth/gcp/v0.3.0",
            "api/auth/azure/v0.3.0",
            "api/auth/aws/v0.3.0",
            "api/auth/approle/v0.3.0",
            "api/v1.8.0",
            "sdk/v0.6.0",
            "api/auth/userpass/v0.2.0",
            "api/auth/ldap/v0.2.0",
            "api/auth/kubernetes/v0.2.0",
            "api/auth/gcp/v0.2.0",
            "api/auth/azure/v0.2.0",
            "api/auth/aws/v0.2.0",
            "api/auth/approle/v0.2.0",
            "sdk/v0.5.3",
            "api/v1.7.2",
            "sdk/v0.5.1",
            "api/v1.7.1",
            "api/v1.7.0",
            "api/v1.6.0",
            "sdk/v0.5.0",
            "api/v1.5.0",
            "sdk/v0.4.1",
            "last-go-modable",
            "api/auth/ldap/v0.1.0",
            "api/v1.3.1",
            "api/auth/approle/v0.1.1",
            "main-creation",
            "api/auth/gcp/v0.1.0",
            "api/auth/azure/v0.1.0",
            "api/auth/userpass/v0.1.0",
            "api/auth/kubernetes/v0.1.0",
            "api/auth/aws/v0.1.0",
            "api/auth/approle/v0.1.0",
            "sdk/v0.3.0",
            "api/v1.2.0",
            "api/v1.1.1",
            "sdk/v0.2.1",
            "v1.2.0",
            "v1.2.0-rc1",
            "api/v1.0.4",
            "sdk/v0.1.13",
            "api/v1.0.3",
            "sdk/v0.1.12",
            "v1.2.0-beta2",
            "v1.2.0-beta1",
            "sdk/v0.1.11",
            "sdk/v0.1.10",
            "api/v1.0.2",
            "v1.1.1",
            "sdk/v0.1.9",
            "api/v1.0.1",
            "sdk/v0.1.8",
            "v1.1.0",
            "v1.1.0-beta2",
            "v1.1.0-beta1",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0",
            "v1.0.0-rc1",
            "v1.0.0-beta2",
            "v1.0.0-beta1",
            "v0.11.2",
            "v0.11.1",
            "v0.11.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-5798.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.685478126Z",
      "provider": "osv",
      "references": [
        "https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5798.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-5798",
        "https://github.com/hashicorp/vault"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-287"
        ],
        "cna_assigner": "HashiCorp",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5798.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-5798",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 501075,
  "published_at": "2024-06-12T18:55:24.788+00:00"
}