CVE-2025-6037: Vault Certificate Auth Method Did Not Validate Common Name For Non-CA Certificates
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+|https://developer.hashicorp.com/vault/api-docs/auth/cert#certificate]. In this configuration, an attacker may be able to craft a malicious certificate that could be used to impersonate another user. Fixed in Vault Community Edition 1.20.1 and Vault Enterprise 1.20.1, 1.19.7, 1.18.12, and 1.16.23.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/github.com/hashicorp/vaultto a version that resolves this vulnerability.Fixed in 1.20.1 - Upgrade
Upgrade
HashiCorp Vault Community Editionto a version that resolves this vulnerability.Fixed in 1.20.1 - Upgrade
Upgrade
HashiCorp Vault Enterpriseto a version that resolves this vulnerability.Fixed in 1.20.1 - Upgrade
Upgrade
HashiCorp Vault Enterpriseto a version that resolves this vulnerability.Fixed in 1.19.7 - Upgrade
Upgrade
HashiCorp Vault Enterpriseto a version that resolves this vulnerability.Fixed in 1.18.12 - Upgrade
Upgrade
HashiCorp Vault Enterpriseto a version that resolves this vulnerability.Fixed in 1.16.23
Event History
Frequently Asked Questions
What is the severity of CVE-2025-6037?
CVE-2025-6037 is classified as a critical vulnerability due to improper validation of client certificates.
How do I fix CVE-2025-6037?
To fix CVE-2025-6037, ensure that Vault is configured to use a CA certificate for client authentication.
What systems are affected by CVE-2025-6037?
CVE-2025-6037 affects HashiCorp Vault Community Edition versions up to 1.20.1 and HashiCorp Vault Enterprise versions from 1.16.23 to 1.20.1.
What are the implications of CVE-2025-6037?
The implications of CVE-2025-6037 include the potential for unauthorized access to the Vault due to incorrect certificate validation.
Is there a workaround for CVE-2025-6037?
A possible workaround for CVE-2025-6037 is to temporarily disable the TLS certificate authentication method until a proper fix is implemented.