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

Published Jun 12, 2024
·
Updated

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

Affected Software

7 affected componentsFixes available
go/github.com/hashicorp/vault>=0.11.0<1.15.9
1.15.9
go/github.com/hashicorp/vault>=1.16.0-rc1<1.16.3
1.16.3
go/github.com/hashicorp/vault=1.17.0-rc1
1.17.0
HashiCorp Vault>=0.11.0<1.15.9
HashiCorp Vault>=0.11.0<1.15.9
HashiCorp Vault>=1.16.0<1.16.3
HashiCorp Vault>=1.16.0<1.16.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/hashicorp/vault to a version that resolves this vulnerability.

    Fixed in 1.15.9
  2. Upgrade

    Upgrade go/github.com/hashicorp/vault to a version that resolves this vulnerability.

    Fixed in 1.16.3
  3. Upgrade

    Upgrade go/github.com/hashicorp/vault to a version that resolves this vulnerability.

    Fixed in 1.17.0
  4. Upgrade

    Upgrade Vault to a version that resolves this vulnerability.

    Fixed in 1.17.0
  5. Upgrade

    Upgrade Vault Enterprise to a version that resolves this vulnerability.

    Fixed in 1.16.3
  6. Upgrade

    Upgrade Vault Enterprise to a version that resolves this vulnerability.

    Fixed in 1.15.9

Event History

Jun 12, 2024
CVE Published
via MITRE·06:55 PM
Data Sourced
via MITRE·06:55 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
Affected Software
Advisory Published
via GitHub·09:31 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-5798?

CVE-2024-5798 has been classified as a high severity vulnerability due to improper validation of JSON Web Token audience claims.

2

How do I fix CVE-2024-5798?

To remediate CVE-2024-5798, upgrade to Vault version 1.15.9, 1.16.3, or 1.17.0.

3

What software is affected by CVE-2024-5798?

CVE-2024-5798 affects HashiCorp Vault versions from 0.11.0 to 1.15.9, 1.16.0-rc1 to 1.16.3, and the 1.17.0-rc1 release.

4

What types of attacks could exploit CVE-2024-5798?

CVE-2024-5798 could be exploited by allowing attackers to log in using invalid JWTs that do not match role-bound audience claims.

5

How does CVE-2024-5798 impact Vault security?

CVE-2024-5798 compromises the authentication integrity of Vault, potentially allowing unauthorized access if exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203