CVE-2025-6004
HashiCorp Vault vulnerability analysis and mitigation

Overview

CVE-2025-6004 is a user lockout bypass vulnerability in HashiCorp Vault and Vault Enterprise affecting the Userpass and LDAP authentication methods. The flaw allows unauthenticated attackers to circumvent the account lockout mechanism designed to prevent repeated failed authentication attempts. It affects Vault Community Edition and Enterprise versions from 1.13.0 up to (but not including) 1.20.1, with specific Enterprise patch branches at 1.19.7, 1.18.12, and 1.16.23. Disclosed on August 1, 2025, it carries a CVSS v3.1 base score of 5.3 (Medium) (GitHub Advisory, HashiCorp Advisory).

Technical details

The vulnerability is classified as CWE-307 (Improper Restriction of Excessive Authentication Attempts), meaning Vault fails to properly enforce its user lockout policy for the Userpass and LDAP auth methods (GitHub Advisory). An unauthenticated remote attacker can exploit this by sending repeated authentication requests over the network without triggering the lockout threshold, effectively bypassing the brute-force protection control. No special privileges or user interaction are required, and attack complexity is low. A technical write-up by the discovering researchers is available at Cyata AI's blog (Cyata AI Blog).

Impact

Successful exploitation allows attackers to conduct unlimited authentication attempts against Vault's Userpass and LDAP auth methods without being locked out, significantly increasing the risk of credential compromise through brute-force, password spraying, or credential stuffing attacks. While the vulnerability itself does not directly expose secrets or grant access, it undermines a key defense-in-depth control, and if credentials are guessed successfully, an attacker could gain unauthorized access to Vault-managed secrets, tokens, and sensitive infrastructure credentials. The integrity impact is rated Low (no confidentiality or availability impact from the bypass alone), but the downstream risk to secrets stored in Vault is considerably higher (GitHub Advisory, HashiCorp Advisory).

Exploitability

There is no public proof-of-concept exploit code and no confirmed in-the-wild exploitation as of the time of disclosure (GitHub Advisory). The EPSS score is approximately 0.039–0.115%, placing it in the lower percentiles for near-term exploitation likelihood. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the attack pattern aligns with well-known techniques including password spraying (CAPEC-565), credential stuffing (CAPEC-600), and brute-force (CAPEC-49), making it a viable enabler for credential-based attacks against exposed Vault instances (Cyata AI Blog).

Exploitation steps

  1. Reconnaissance: Identify internet-facing or network-accessible HashiCorp Vault instances running versions 1.13.0 through 1.20.0 using tools like Shodan, Censys, or internal network scanning. Confirm the Userpass or LDAP auth method is enabled via the Vault API (e.g., GET /v1/sys/auth).
  2. Enumerate usernames: Attempt to enumerate valid usernames through Vault's Userpass or LDAP auth endpoints, observing response differences for valid vs. invalid users.
  3. Bypass lockout and brute-force credentials: Send repeated authentication requests to the Vault API (e.g., POST /v1/auth/userpass/login/<username> with varying passwords) without triggering account lockout, leveraging the bypass to conduct password spraying or brute-force attacks at scale.
  4. Gain authenticated access: Upon successful credential guess, obtain a Vault token from the login response, granting access to secrets and policies assigned to the compromised account.
  5. Lateral movement / secret exfiltration: Use the obtained token to enumerate and read secrets (e.g., GET /v1/secret/data/<path>), potentially accessing database credentials, API keys, or cloud provider credentials stored in Vault (HashiCorp Advisory, Cyata AI Blog).

Indicators of compromise

  • Network: High volume of authentication requests to Vault API endpoints such as POST /v1/auth/userpass/login/<username> or POST /v1/auth/ldap/login/<username> from a single or rotating set of source IPs without triggering lockout responses.
  • Logs: Vault audit logs showing repeated failed login attempts for the same username across many requests without corresponding lockout events; unusual authentication activity outside normal business hours or from unexpected geographic locations.
  • Logs: Vault audit log entries showing a successful login following a large number of failed attempts for the same account, indicating a successful brute-force.
  • Process/API: Unexpected token issuance for Userpass or LDAP accounts followed by rapid enumeration of secret paths or policy reads in audit logs.

Mitigation and workarounds

HashiCorp has released patches addressing this vulnerability: upgrade to Vault Community Edition 1.20.1 or Vault Enterprise 1.20.1, 1.19.7, 1.18.12, or 1.16.23 as appropriate for your release track (HashiCorp Advisory, GitHub Advisory). As interim mitigations, organizations should implement multi-factor authentication where possible, restrict network access to Vault's API to trusted networks only, and closely monitor authentication logs for anomalous login patterns. After patching, verify that the user lockout mechanism is functioning correctly by reviewing Vault's auth configuration.

Community reactions

The vulnerability was discovered and reported by researchers at Cyata AI, who published a blog post describing zero-day flaws found in HashiCorp Vault's authentication, identity, and authorization systems (Cyata AI Blog). Security news outlets including CyberSecurityNews, GBHackers, and CyberPress covered the disclosure, with some headlines emphasizing "zero-day" and "remote code execution" framing — though CVE-2025-6004 specifically concerns lockout bypass rather than RCE (CyberSecurityNews). Community discussion on social media (Twitter/X via RedPacketSecurity) noted the advisory shortly after publication. A technical TL;DR post was also published at 0dave.ch providing a concise breakdown of the vulnerability (0dave.ch).

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-2026-56865HIGH8.4
  • cAdvisor logocAdvisor
  • dapr-injector-1.16
NoYesAug 13, 2026
CVE-2026-56864HIGH7.5
  • cAdvisor logocAdvisor
  • logto
NoYesAug 13, 2026
CVE-2026-56862HIGH7.5
  • cAdvisor logocAdvisor
  • elastic-otel-collector-9.4
NoYesAug 13, 2026
CVE-2026-56859HIGH7.5
  • cAdvisor logocAdvisor
  • aws-ebs-csi-driver
NoYesAug 13, 2026
CVE-2026-56860MEDIUM5.9
  • cAdvisor logocAdvisor
  • flux-image-automation-controller
NoYesAug 13, 2026

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