Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/hashicorp/vault
  4. ›
  5. CVE-2025-6013

CVE-2025-6013: HashiCorp Vault ldap auth method may not have correctly enforced MFA

August 6, 2025

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.

References

  • discuss.hashicorp.com/t/hcsec-2025-20-vault-ldap-mfa-enforcement-bypass-when-using-username-as-alias/76092
  • github.com/advisories/GHSA-7rx2-769v-hrwf
  • github.com/hashicorp/vault
  • nvd.nist.gov/vuln/detail/CVE-2025-6013

Code Behaviors & Features

Detect and mitigate CVE-2025-6013 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.20.2

Fixed versions

  • 1.20.2

Solution

Upgrade to version 1.20.2 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-156: Improper Neutralization of Whitespace

Source file

go/github.com/hashicorp/vault/CVE-2025-6013.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:22 +0000.