CVE-2025-13357: Github.com/hashicorp/terraform provider vault Vault’s Terraform Provider Incorrectly Set Vulnerability

HIGH
Advisory Identifier: GHSA-gmm6-j2g5-r52m
CVSS 7.4
CWE-1188
Published
Advisory Summary

CVE-2025-13357 is a HIGH (CVSS 7.4) vault’s terraform provider incorrectly set vulnerability (CWE-1188: Initialization of a Resource with an Insecure Default) affecting Github.com/hashicorp/terraform provider vault libraries in the Go ecosystem. The issue involves vault’s terraform provider incorrectly set default deny_null_bind parameter for ldap auth method to false by default. Remediation is available by upgrading affected packages to version 5.5.0.

CVE-2025-13357 at a Glance

CVE Identifier CVE-2025-13357
GHSA Identifier GHSA-gmm6-j2g5-r52m
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-1188: Initialization of a Resource with an Insecure Default
Affected Product Github.com/hashicorp/terraform provider vault
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-13357

To remediate this vulnerability, upgrade all affected Github.com/hashicorp/terraform provider vault dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/hashicorp/terraform-provider-vault fixed: 5.5.0
Upgrade github.com/hashicorp/terraform-provider-vault to 5.5.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/hashicorp/terraform-provider-vault

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-13357, inspect your project dependencies for Github.com/hashicorp/terraform provider vault:

inspect dependencies for github.com/hashicorp/terraform-provider-vault

Analyze the terminal output to locate any version of Github.com/hashicorp/terraform provider vault in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.5.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1188: Initialization of a Resource with an Insecure Default, where the product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure. In Github.com/hashicorp/terraform provider vault, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-13357 Affected Github.com/hashicorp/terraform provider vault Versions

1 component(s)
Fixed Versions:
5.5.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/hashicorp/terraform-provider-vault
Go
< 5.5.0
5.5.0

References

Frequently Asked Questions

What is CVE-2025-13357?
CVE-2025-13357 is a security vulnerability in Github.com/hashicorp/terraform provider vault involving Vault’s Terraform Provider incorrectly set default deny_null_bind parameter for LDAP auth method to false by default under CWE-1188: Initialization of a Resource with an Insecure Default.
Which Github.com/hashicorp/terraform provider vault versions are affected?
Affected versions include releases prior to 5.5.0 across affected packages: github.com/hashicorp/terraform-provider-vault.
What version fixes CVE-2025-13357?
Upgrading to 5.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/hashicorp/terraform-provider-vault affected?
Yes, github.com/hashicorp/terraform-provider-vault is affected in releases prior to 5.5.0. Upgrade your dependency to 5.5.0 or later.
What is the CVSS score of CVE-2025-13357?
CVE-2025-13357 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2025-13357?
CVE-2025-13357 is classified under CWE-1188: Initialization of a Resource with an Insecure Default (The product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure.).
How can I check Go dependencies for CVE-2025-13357?
Run the dependency tree command: 'inspect dependencies for github.com/hashicorp/terraform-provider-vault'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gmm6-j2g5-r52m",
  "modified" : "2025-11-27T08:37:51Z",
  "published" : "2025-11-21T15:31:28Z",
  "aliases" : [ "CVE-2025-13357" ],
  "summary" : "Vault’s Terraform Provider incorrectly set default deny_null_bind parameter for LDAP auth method to false by default",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/hashicorp/terraform-provider-vault"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-13357"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hashicorp/terraform-provider-vault/pull/2622"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hashicorp/terraform-provider-vault/commit/882bc7f409acc99c872c345edd65159d9568589a"
  }, {
    "type" : "WEB",
    "url" : "https://discuss.hashicorp.com/t/hcsec-2025-33-vault-terraform-provider-applied-incorrect-defaults-for-ldap-auth-method/76822"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-gmm6-j2g5-r52m"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hashicorp/terraform-provider-vault"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hashicorp/terraform-provider-vault/releases/tag/v5.5.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1188" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-21T18:10:41Z",
    "nvd_published_at" : "2025-11-21T15:15:51Z"
  }
}