CVE-2025-6013: HashiCorp Vault · Improper Neutralization of Whitespace
Affects HashiCorp VaultSource CVE Database V5
Not known to be exploited · CVSS 6.5 Medium · fixed in 1.20.2 : update HashiCorp Vault when convenient.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.20.2
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| HashiCorp Vault | Affected
| Fixed in– |
AI-suggested
Organizations should immediately upgrade affected Vault versions to the patched releases: Vault Community Edition 1.20.2 or later, and Vault Enterprise 1.20.2, 1.19.8, 1.18.13, or 1.16.24. In the interim, administrators should audit LDAP user entries for CNs with leading or trailing whitespace and normalize these entries to prevent ambiguity. Review and disable the 'username_as_alias' setting if not strictly required, as this setting is central to the vulnerability. Implement strict input validation and normalization on LDAP attributes used for authentication. Additionally, monitor authentication logs for unusual patterns that may indicate attempts to exploit this vulnerability. Employ network segmentation and restrict access to Vault's LDAP authentication endpoints to trusted sources only. Finally, conduct a thorough review of MFA enforcement policies and test them after applying patches to ensure proper functionality.
Description
Vault and Vault Enterprise’s (“Vault”) ldap auth method may not have correctly enforced MFA if username_as_alias was set to true and a user had multiple CNs that are equal but with leading or trailing spaces. Fixed in Vault Community Edition 1.20.2 and Vault Enterprise 1.20.2, 1.19.8, 1.18.13, and 1.16.24.