Skip to main content

Vault Terraform Provider CVE-2025-13357

CRITICAL
Initialization of a Resource with an Insecure Default (CWE-1188)
2025-11-21 security@hashicorp.com
9.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Vault LDAP auth provisioned via Terraform
  2. Exploit
    Submit valid username with empty password
  3. Execution
    LDAP server accepts anonymous/null bind
  4. Impact
    Authentication 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Mar 28, 2026 - 19:23 CVSS 7.4

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

go github.com/hashicorp/terraform-provider-vault fix: 5.5.0

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

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.4 HIGH

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).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE 7.4 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Oct 08, 2026 - 10:27 vuln.today
v2 - CVSS changed
Severity Changed
Oct 08, 2026 - 10:22 NVD
HIGH CRITICAL
CVSS changed
Oct 08, 2026 - 10:22 NVD
7.4 (HIGH) 9.8 (CRITICAL)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Nov 21, 2025 - 15:15 nvd
HIGH 7.4

DescriptionNVD

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 74% exploitable
Prevalence
Medium
widely-used enterprise IaC provider, but only Vault LDAP-auth deployments affected
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)NVD

cpe:2.3:a:hashicorp:terraform_provider:*:*:*:*:*:vault:*:*

Vendor StatusVendor

SUSE

Severity: High

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy