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

Low 2.6 Published Updated

Attackers can bypass authentication in HashiCorp Vault by exploiting improper JWT audience validation, allowing unauthorized access to protected resources.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-5798?

CVE-2024-5798 is a low-severity authentication bypass vulnerability in Hashicorp Vault, published on 12 Jun 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

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

Weakness: CWE-287

Which versions are affected by CVE-2024-5798?

8 open source packages ship an affected version, including github.com/hashicorp/vault and vault. It affects 1 product.

PackageAffectedFixed in
github.com/hashicorp/vault GoFrom 0.11.01.16.3, 1.17.0
github.com/hashicorp/vault GoFrom 0.11.01.15.9
github.com/hashicorp/vault GoFrom 0.11.01.15.9
github.com/hashicorp/vault GoFrom 1.16.0-rc11.16.3
github.com/hashicorp/vault GoFrom 1.16.0-rc11.16.3
github.com/hashicorp/vault GoFrom 1.17.0-rc11.17.0
2 more packages
github.com/hashicorp/vault GoFrom 1.17.0-rc11.17.0
vault BitnamiFrom 0.11.01.16.2

Products include Hashicorp Vault.

How do I fix CVE-2024-5798?

Upgrade github.com/hashicorp/vault to a fixed version for your release line: 1.16.3, 1.17.0 or 1.15.9.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2024-5798 being exploited?

There is no known exploitation of CVE-2024-5798 in the wild and no public exploit code.

All Hashicorp Vault vulnerabilities

Sources

Also known as BIT-vault-2024-5798, GHSA-32cj-5wx4-gq8p, GO-2024-2921.

Is CVE-2024-5798 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free