Vault Terraform Provider CVE-2025-13357
CRITICALAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Vault LDAP auth provisioned via Terraform
-
ExploitSubmit valid username with empty password
-
ExecutionLDAP server accepts anonymous/null bind
-
ImpactAuthentication bypassed, Vault access granted
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V13 - Configuration Secure default settings
|
| Exploitation Conditions | Exploitation requires a specific configuration chain, not a default-config remote attack. Prerequisites: (1) the Vault LDAP auth method was configured using the Vault Terraform Provider prior to v5.5.0; (2) the deny_null_bind parameter was left at the provider's insecure default of false (i.e., not explicitly overridden to true); and (3) the backing LDAP/Active Directory server itself permits anonymous or unauthenticated (null) binds. Limiting factors that reduce real-world risk: directory servers hardened to reject anonymous/null binds (a common default on modern Active Directory) make the flaw non-exploitable regardless of the Vault setting; operators who explicitly set deny_null_bind=true are unaffected; and only LDAP-auth deployments provisioned through this provider are in scope. Affected product: cpe:2.3:a:hashicorp:terraform_provider (Vault provider), versions prior to 5.5.0. |
| Impact | The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H, base 9.8 Critical) presents this as a trivially-exploitable remote authentication bypass, but the signals conflict sharply with the description and should be weighed carefully. This is not a memory-corruption or code-execution flaw in a running service - it is an insecure default (CWE-1188) in HashiCorp's Vault Terraform Provider, which set deny_null_bind to false, so the impact only materializes under a specific configuration chain. EPSS is very low at 0.10% (26th percentile), there is no CISA KEV listing and no public exploit identified at time of analysis, which is consistent with a conditional misconfiguration rather than a mass-exploited vulnerability. The practical risk is therefore materially lower than the 9.8 implies: exploitation requires that operators used the provider to configure LDAP auth AND left the default in place AND that the backing LDAP server itself permits anonymous/unauthenticated (null) binds - a non-default, hardening-dependent condition. Conflict to note explicitly: CVSS rates AC:L, but real-world exploitation depends on a multi-factor misconfiguration (vulnerable default not overridden plus an LDAP server allowing anonymous binds), so I assess attack complexity as higher than the input vector claims. Net: treat as a high-priority configuration audit item for organizations that manage Vault LDAP auth through Terraform, but not a drop-everything internet-wide emergency; verify LDAP server null-bind policy to gauge actual exposure. |
| Exploit ScenarioDerived | An organization uses the Vault Terraform Provider (pre-5.5.0) to provision Vault's LDAP auth method and relies on the provider defaults, which leave deny_null_bind set to false, while the backing directory server permits anonymous/null binds. A remote attacker then authenticates to Vault by submitting a valid username with an empty password, triggering a null bind that the LDAP server accepts, thereby bypassing authentication and obtaining the Vault access tied to that identity. No public exploit code is required or identified; the 'attack' is simply presenting empty credentials against the misconfigured auth path. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 08, 2026
Authentication bypass can occur in HashiCorp's Vault Terraform Provider prior to v5.5.0 because the provider applied an incorrect default of false for the LDAP auth method's deny_null_bind parameter, allowing Vault to accept anonymous (null) LDAP binds whenever the backing directory server also permits them. Exploitation is not a trivial default-configuration remote attack: it requires a specific configuration chain - the LDAP auth method provisioned through the affected provider, deny_null_bind left at the insecure default (not explicitly overridden to true), and an LDAP/Active Directory server that itself accepts anonymous or unauthenticated binds. The CVSS vector lists PR:N (no authentication required of the attacker), but the independent assessment rates the attack complexity as High precisely because of these prerequisites, and real-world risk is further reduced by directory servers hardened against anonymous binds; EPSS is only 0.10% (26th percentile) and no public exploit code has been identified at time of analysis.
Earlier versions of this analysis (1)
Vault’s Terraform Provider incorrectly set the default deny_null_bind parameter for the LDAP auth method to false by default, potentially resulting in an insecure configuration. Rated high severity (CVSS 7.4), this vulnerability is remotely exploitable, no authentication required. No vendor patch available.
RemediationAI
Vendor-released patch: Vault Terraform Provider v5.5.0, which corrects the insecure default so deny_null_bind defaults to true. Upgrade the provider to v5.5.0 (for example by pinning the required_providers version constraint), then run terraform init -upgrade and re-apply so that the corrected default is pushed to every Vault LDAP auth backend previously managed by the affected versions; where possible also set deny_null_bind = true explicitly in the vault_ldap_auth_backend resource to make the secure setting self-documenting and immune to future default changes. As a compensating control independent of provider versioning, harden the backing LDAP/Active Directory servers to reject anonymous and unauthenticated (null) binds - this breaks the exploitation chain and makes the flaw non-exploitable even on unpatched providers, though it may interrupt any legitimate anonymous-bind use cases, so validate in a non-production directory first. Operators should also audit existing LDAP auth backends for the insecure setting and review Vault audit logs for successful bind attempts from unexpected or anonymous identities; the trade-off of the directory-side hardening is potential disruption of anonymous lookups, while explicit deny_null_bind=true may break workflows that intentionally relied on null binds. Reference: HCSEC-2025-33 at https://discuss.hashicorp.com/t/hcsec-2025-33-vault-terraform-provider-applied-incorrect-defaults-for-ldap-auth-method/76822.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Root cause is CWE-1188 (Insecure Default Initialization of Resource): the HashiCorp Terraform provider for Vault, a declarative infrastructure-as-code plugin that configures Vault resources via the Vault API, shipped the vault_ldap_auth_backend resource with deny_null_bind set to false rather than the secure true default. Vault's LDAP auth method uses this tuning parameter to decide whether it will attempt to authenticate a bind request that carries empty credentials; with deny_null_bind=false, Vault forwards those null/empty-credential binds to the directory. If the LDAP or Active Directory server is itself configured to permit anonymous or unauthenticated binds, the bind succeeds and Vault treats it as a successful login, producing an authentication bypass. The CPE cpe:2.3:a:hashicorp:terraform_provider:*:*:*:*:*:vault:*:* scopes this to the Terraform provider for Vault only (all versions before 5.5.0) - the Vault server binary, the LDAP server, and other Terraform providers are not the flawed component, though they are the other links in the exploitation chain.
Know when Terraform Provider gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Network-reachable auth bypass (AV:N, PR:N, UI:N) but gated on a null-bind-permitting LDAP server plus unoverridden insecure default, so AC:H; access yields confidentiality/integrity impact (C:H/I:H) with no direct availability effect (A:N).
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
Vault’s Terraform Provider incorrectly set the default deny_null_bind parameter for the LDAP auth method to false by default, potentially resulting in an insecure configuration. If the underlying LDAP server allowed anonymous or unauthenticated binds, this could result in authentication bypass. This vulnerability, CVE-2025-13357, is fixed in Vault Terraform Provider v5.5.0.
Executive ViewAI
HashiCorp's Vault Terraform Provider, the tooling teams use to automate the configuration of HashiCorp Vault secret stores, shipped an insecure default in versions before v5.5.0 that can leave an LDAP authentication path open to anonymous binds. Where that configuration chain exists and the backing directory server also permits anonymous binds, an outsider could reach secrets and credentials that Vault is meant to protect. Leadership should care because Vault typically guards the organization's most sensitive material, though the required conditions are narrow and no public exploit activity has been observed.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)NVD
More in Terraform Provider
View allHashiCorp Terraform’s Vault Provider (terraform-provider-vault) did not correctly configure GCE-type bound labels for Va
The Terraform/OpenTofu Proxmox Provider prior to version 0.93.1 contains a path traversal vulnerability in its SSH sudoe
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB