CVE-2025-6013 Details
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.
A vulnerability exists in the LDAP authentication method of HashiCorp Vault and Vault Enterprise. This issue may lead to a bypass of multi-factor authentication (MFA) enforcement. The vulnerability arises when the 'username_as_alias' parameter is enabled, and a user has multiple common names (CNs) that are identical but contain leading or trailing spaces. In such cases, the LDAP auth method may incorrectly handle MFA enforcement, allowing users to authenticate without the required additional verification. This vulnerability affects Vault Community Edition versions 1.10.0 prior to 1.20.1 and Vault Enterprise versions 1.10.0 prior to 1.20.1, 1.19.7, 1.18.12, 1.16.23, and 1.15.16.
Users are advised to upgrade to Vault Community Edition 1.20.2 or Vault Enterprise 1.20.2, 1.19.8, 1.18.13, or 1.16.24.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://discuss.hashicorp.com/t/hcsec-2025-20-vault-ldap-mfa-enforcement-bypass-when-using-username-as-alias/76092 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-156 | Improper Neutralization of Whitespace | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| hashicorp vault | >= 1.10.0, <= 1.15.16 >= 1.10.0, < 1.20.2 >= 1.16.0, < 1.16.24 >= 1.17.0, < 1.18.13 >= 1.19.0, < 1.19.8 >= 1.20.0, < 1.20.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 15, 2025 | Initial Analysis | [email protected] |
| Aug 6, 2025 | New CVE Received | [email protected] |