Skip to content
Heist/ feed
Back to feed
Medium

Vault LDAP MFA Enforcement Bypass When Using Username As Alias

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-6013
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 22:35 UTC · Revision 1

Source evidence

Vault LDAP MFA Enforcement Bypass When Using Username As Alias

core-osv · Original source

Published 6 Aug 2025, 10:06 UTC

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.

osv:CVE-2025-6013
Complete source record
{
  "id": "819fde171960dd82099d75dc9a0a9a2503644e524464f86e33d10a385fec9f56",
  "url": "https://osv.dev/vulnerability/CVE-2025-6013",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Vault LDAP MFA Enforcement Bypass When Using Username As Alias",
    "summary": "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.",
    "evidence": "osv:CVE-2025-6013",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-6013",
      "aliases": [
        "BIT-vault-2025-6013",
        "CVE-2025-6013",
        "GHSA-7rx2-769v-hrwf",
        "GO-2025-3848"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/hashicorp/vault",
              "type": "GIT",
              "events": [
                {
                  "introduced": "7738ec5d0d6f5bf94a809ee0f6ff0142cfa525a6"
                },
                {
                  "fixed": "824d12909d5b596ddd3f34d9c8f169b4f9701a0c"
                },
                {
                  "introduced": "6fdd6b59e97d97a9e19b0fb5304bf879c190295e"
                },
                {
                  "fixed": "824d12909d5b596ddd3f34d9c8f169b4f9701a0c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:-:*:*:*",
                    "range": [
                      {
                        "introduced": "1.10.0"
                      },
                      {
                        "fixed": "1.20.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:hashicorp:vault:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "1.20.0"
                      },
                      {
                        "fixed": "1.20.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.20.1",
            "v1.20.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-6013.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.930807098Z",
      "provider": "osv",
      "references": [
        "https://discuss.hashicorp.com/t/hcsec-2025-20-vault-ldap-mfa-enforcement-bypass-when-using-username-as-alias/76092",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6013.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-6013",
        "https://github.com/hashicorp/vault"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-156"
        ],
        "cna_assigner": "HashiCorp",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.10.0"
                  },
                  {
                    "fixed": "1.19.8"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "ChangesAt"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6013.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-6013",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490606,
  "published_at": "2025-08-06T10:06:55.668+00:00"
}