---
id: CVE-2025-6037
aliases:
  - GHSA-6c5r-4wfc-3mcx
  - BIT-vault-2025-6037
  - GO-2025-3836
title: Hashicorp Vault has Incorrect Validation for Non-CA Certificates
summary: Hashicorp Vault has Incorrect Validation for Non-CA Certificates
severity: medium
cvss: 6.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H'
vendor: hashicorp
product: github.com/hashicorp/vault
ecosystem: go
affected:
  - github.com/hashicorp/vault < 1.20.1
patched:
  - github.com/hashicorp/vault 1.20.1
published: '2025-08-01'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:26.714448344Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-6c5r-4wfc-3mcx'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-6037'
  - url: >-
      https://discuss.hashicorp.com/t/hcsec-2025-18-vault-certificate-auth-method-did-not-validate-common-name-for-non-ca-certificates/76037
  - url: 'https://github.com/hashicorp/vault'
tags:
  - osv
  - go
epss: 0.00249
epssPercentile: 0.16532
ingestedAt: '2026-09-12T03:13:01.758Z'
---

## Overview

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 packages

- `github.com/hashicorp/vault < 1.20.1`

## Remediation

Upgrade to a patched release:

- `github.com/hashicorp/vault 1.20.1`
