CVE-2025-6014
HashiCorp Vault vulnerability analysis and mitigation

Overview

Vault and Vault Enterprise's TOTP (Time-based One-Time Password) Secrets Engine code validation endpoint was found to be susceptible to code reuse within its validity period. The vulnerability, identified as CVE-2025-6014, affects Vault Community Edition up to 1.20.0 and Vault Enterprise up to versions 1.20.0, 1.19.6, 1.18.11, and 1.16.22 (HashiCorp Discussion).

Technical details

The vulnerability stems from the improper neutralization of whitespace (CWE-156) in the TOTP used code cache. Used code entries were not properly normalized, which made it possible to reuse existing codes by appending whitespace. The issue has a CVSS v3.1 Base Score of 6.5 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N (NVD).

Impact

The vulnerability allows for the reuse of TOTP codes within their validity period, potentially compromising the security of two-factor authentication implementations using Vault's TOTP secrets engine (HashiCorp Discussion).

Mitigation and workarounds

The vulnerability has been fixed in Vault Community Edition 1.20.1 and Vault Enterprise versions 1.20.1, 1.19.7, 1.18.12, and 1.16.23. The fix implements strict checking of TOTP code length based on the configured key length. Organizations are advised to upgrade to these patched versions (HashiCorp Discussion).

Community reactions

The vulnerability was responsibly disclosed by Yarden Porat of Cyata Security to HashiCorp, demonstrating effective coordination in vulnerability disclosure practices (HashiCorp Discussion).

Additional resources


SourceThis report was generated using AI

Related HashiCorp Vault vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-6203HIGH7.5
  • HashiCorp VaultHashiCorp Vault
  • splunk-otel-collector-fips
NoYesAug 28, 2025
CVE-2025-6037MEDIUM6.8
  • HashiCorp VaultHashiCorp Vault
  • vault
NoYesAug 01, 2025
CVE-2025-6013MEDIUM6.5
  • HashiCorp VaultHashiCorp Vault
  • github.com/hashicorp/vault
NoYesAug 06, 2025
CVE-2025-6016N/AN/A
  • HashiCorp VaultHashiCorp Vault
  • cpe:2.3:a:hashicorp:vault
NoYesAug 07, 2025
CVE-2025-6010MEDIUMN/A
  • HashiCorp VaultHashiCorp Vault
  • cpe:2.3:a:hashicorp:vault
NoYesAug 07, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management