CVE-2025-6013 in Hashicorp Vault
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.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Hashicorp | Vault | ≥ 1.10.0, < 1.20.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-6013 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-031214-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| Published | 2025-08-06 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-156: CWE-156
Analysis AI-written, not human-reviewed
Vault and Vault Enterprise's LDAP authentication method may not have correctly enforced Multi-Factor Authentication (MFA) if the username_as_alias parameter was set to true and a user had multiple CNs with leading or trailing spaces.
An attacker could exploit this vulnerability by creating or manipulating LDAP entries with CNs that have leading or trailing spaces, potentially bypassing MFA requirements for affected users.
Questions
What is CVE-2025-6013?
Vault and Vault Enterprise's LDAP authentication method may not have correctly enforced Multi-Factor Authentication (MFA) if the username_as_alias parameter was set to true and a user had multiple CNs with leading or trailing spaces.
What is the CVSS score for CVE-2025-6013?
CVE-2025-6013 has CVSS 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N. EPSS: 0.6%.
Is CVE-2025-6013 actively exploited?
No confirmed active exploitation of CVE-2025-6013 as of 2026-09-25.
How do I remediate CVE-2025-6013?
Priority: HIGH. Advisory: https://discuss.hashicorp.com/t/hcsec-2025-20-vault-ldap-mfa-enforcement-bypass-when-using-username-as-alias/76092 PSIRT: [email protected]
What systems are affected by CVE-2025-6013?
CVE-2025-6013 affects Hashicorp Vault.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Hashicorp","product":"Vault","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.