NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2024-5798: HashiCorp Vault Incorrectly Validated JSON Web Tokens (JWT) Audience Claims

lowCVSS 3.1 2.6GHSA-32cj-5wx4-gq8p

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

Published Jun 12, 2024 · Updated Aug 7, 2025

Affected packages

github.com/hashicorp/vault

Ecosystem
Go
Affected
= 1.17.0-rc1
Fixed in
1.17.0
Check
go list -m github.com/hashicorp/vault

github.com/hashicorp/vault

Ecosystem
Go
Affected
>= 1.16.0-rc1, < 1.16.3
Fixed in
1.16.3
Check
go list -m github.com/hashicorp/vault

github.com/hashicorp/vault

Ecosystem
Go
Affected
>= 0.11.0, < 1.15.9
Fixed in
1.15.9
Check
go list -m github.com/hashicorp/vault

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries