Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-6037: CWE-295: Improper Certificate Validation in HashiCorp Vault

0
Medium
VulnerabilityCVE-2025-6037cvecve-2025-6037cwe-295
Published: Fri Aug 01 2025 (08/01/2025, 17:52:48 UTC)
Source: CVE Database V5
Vendor/Project: HashiCorp
Product: Vault

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+|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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 04:08:51 UTC

Technical Analysis

CVE-2025-6037 is a security vulnerability classified under CWE-295 (Improper Certificate Validation) found in HashiCorp Vault's TLS certificate authentication method. When Vault is configured to trust a non-CA certificate as a trusted certificate, it fails to correctly validate client certificates. This improper validation can be exploited by an attacker who can craft a malicious client certificate that Vault incorrectly accepts, allowing the attacker to impersonate legitimate users. The vulnerability affects multiple versions of Vault, including both Community and Enterprise editions, and was addressed in updates released in mid-2025. The flaw arises because Vault's certificate authentication logic does not enforce strict certificate chain validation when a non-CA certificate is used as a trust anchor, undermining the trust model. Exploitation requires the attacker to have high privileges and to interact with the system, limiting the attack surface but still posing a significant risk in environments where certificate-based authentication is critical. The vulnerability impacts confidentiality, integrity, and availability by enabling unauthorized access and potential privilege escalation. No public exploits have been reported, but the risk remains until patched.

Potential Impact

The vulnerability allows attackers to impersonate other users by presenting maliciously crafted client certificates that Vault incorrectly validates. This can lead to unauthorized access to sensitive secrets and credentials managed by Vault, compromising confidentiality. Attackers may also perform actions on behalf of legitimate users, impacting integrity. If attackers gain elevated privileges, they could disrupt services or exfiltrate critical data, affecting availability. Organizations relying on Vault for secrets management, especially in cloud-native or DevOps environments, face increased risk of credential theft, lateral movement, and potential breaches. The requirement for high privileges and user interaction reduces the likelihood of widespread automated exploitation but does not eliminate targeted attacks. The impact is significant in sectors where Vault is integral to security infrastructure, such as finance, technology, and government.

Mitigation Recommendations

Organizations should immediately upgrade affected Vault instances to the patched versions: Vault Community Edition 1.20.1 or Vault Enterprise 1.20.1, 1.19.7, 1.18.12, or 1.16.23. Review and avoid configurations that use non-CA certificates as trusted certificates for TLS client authentication. Implement strict certificate chain validation policies and consider using only CA certificates as trust anchors. Conduct audits of existing certificate authentication configurations to identify and remediate insecure setups. Employ network segmentation and least privilege principles to limit the impact of potential impersonation. Monitor Vault logs for unusual authentication attempts or certificate anomalies. Additionally, enforce multi-factor authentication where possible to add layers of defense beyond certificate validation. Regularly update and patch Vault and related infrastructure to reduce exposure to known vulnerabilities.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
HashiCorp
Date Reserved
2025-06-12T18:21:50.999Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 688d0144ad5a09ad00cb0c2d

Added to database: 8/1/2025, 6:02:44 PM

Last enriched: 2/27/2026, 4:08:51 AM

Last updated: 3/26/2026, 9:13:21 AM

Views: 128

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses