CVE-2024-2048 Vault Cert Auth Method Did Not Correctly Validate Non-CA Certificates

High 8.1 Published Updated

Attackers can bypass authentication in HashiCorp Vault by crafting malicious certificates when a non-CA certificate is configured as trusted.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-2048?

CVE-2024-2048 is a high-severity authentication bypass vulnerability in Hashicorp Vault, published on 4 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Vault and Vault Enterprise (“Vault”) TLS certificate auth method did not correctly validate client certificates when configured with a non-CA certificate as trusted certificate. In this configuration, an attacker may be able to craft a malicious certificate that could be used to bypass authentication. Fixed in Vault 1.15.5 and 1.14.10.

Weakness: CWE-295

Which versions are affected by CVE-2024-2048?

6 open source packages ship an affected version, including github.com/hashicorp/vault and vault. It affects 2 products.

PackageAffectedFixed in
github.com/hashicorp/vault GoAll versions1.14.10, 1.15.5
github.com/hashicorp/vault GoAll versions1.14.10
github.com/hashicorp/vault GoAll versions1.14.10
github.com/hashicorp/vault GoFrom 1.15.01.15.5
github.com/hashicorp/vault GoFrom 1.15.01.15.5
vault BitnamiFrom 1.15.51.16.0

Products include Hashicorp Vault, Openbao Openbao.

How do I fix CVE-2024-2048?

Upgrade github.com/hashicorp/vault to a fixed version for your release line: 1.14.10 or 1.15.5.

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

Is CVE-2024-2048 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-2048 exists.

All Hashicorp Vault vulnerabilities

Sources

Also known as BIT-vault-2024-2048, GHSA-r3w7-mfpm-c2vw, GO-2024-2617.

Is CVE-2024-2048 in your software?

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

Check your SBOMs for free