CVE-2024-2048 Vault Cert Auth Method Did Not Correctly Validate Non-CA Certificates
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/hashicorp/vault Go | All versions | 1.14.10, 1.15.5 |
github.com/hashicorp/vault Go | All versions | 1.14.10 |
github.com/hashicorp/vault Go | All versions | 1.14.10 |
github.com/hashicorp/vault Go | From 1.15.0 | 1.15.5 |
github.com/hashicorp/vault Go | From 1.15.0 | 1.15.5 |
vault Bitnami | From 1.15.5 | 1.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.
Other vulnerabilities in Hashicorp Vault
Sources
Also known as BIT-vault-2024-2048, GHSA-r3w7-mfpm-c2vw, GO-2024-2617.