Live threats

All CVEs / Hashicorp

CVE-2024-5798Hashicorp Vault

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
0.5%
probability of exploitation in 30 days · percentile 39
Auth required
No
Published
Jun 12, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-287
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Vault.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/hashicorp/vault ≥ 1.17.0-rc1 < 1.17.0 1.17.0 go get github.com/hashicorp/vault@v1.17.0
Go github.com/hashicorp/vault ≥ 1.16.0-rc1 < 1.16.3 1.16.3 go get github.com/hashicorp/vault@v1.16.3
Go github.com/hashicorp/vault ≥ 0.11.0 < 1.15.9 1.15.9 go get github.com/hashicorp/vault@v1.15.9
Go github.com/hashicorp/vault ≥ 0.11.0 < 1.16.3 1.16.3 go get github.com/hashicorp/vault@v1.16.3
Go github.com/hashicorp/vault ≥ 1.17.0-rc1 < 1.17.0 1.17.0 go get github.com/hashicorp/vault@v1.17.0

Per OSV / GitHub Advisories (GHSA-32cj-5wx4-gq8p, GO-2024-2921). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
hashicorpvault≥ 0.11.0 < 1.15.9
hashicorpvault≥ 0.11.0 < 1.15.9
hashicorpvault≥ 1.16.0 < 1.16.3
hashicorpvault≥ 1.16.0 < 1.16.3

Official sources

References

Links published by the sources. Open them with care.