CVE-2025-6013 Vault LDAP MFA Enforcement Bypass When Using Username As Alias
Attackers can bypass MFA enforcement in Vault's LDAP auth method when username_as_alias is enabled and specific CN formatting exists.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-6013?
CVE-2025-6013 is a medium-severity authentication bypass vulnerability in Hashicorp Vault, published on 6 Aug 2025. An attacker needs administrator access to exploit it, with no action from the victim.
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.
Weakness: CWE-156
Which versions are affected by CVE-2025-6013?
4 open source packages ship an affected version, including github.com/hashicorp/vault and vault. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/hashicorp/vault Go | All versions | 1.20.2 |
github.com/hashicorp/vault Go | All versions | 1.20.2 |
github.com/hashicorp/vault Go | All versions | 1.20.2 |
vault Bitnami | From 1.10.0 | 1.20.2 |
Products include Hashicorp Vault.
How do I fix CVE-2025-6013?
Upgrade github.com/hashicorp/vault to 1.20.2 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2025-6013 being exploited?
There is no known exploitation of CVE-2025-6013 in the wild and no public exploit code.
Other vulnerabilities in Hashicorp Vault
Sources
Also known as BIT-vault-2025-6013, GHSA-7rx2-769v-hrwf, GO-2025-3848, MINI-rf9r-m9w5-w4qv.