Read the docs
TI-2023-04408 Aliases CVE-2023-4782GHSA-h626-pv66-hhm7

Terraform Allows Arbitrary File Write During Init Operation

Priority LOW 34CWE-22Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.

Summary

Terraform version 1.0.8 through 1.5.6 allows arbitrary file write during the `init` operation if run on maliciously crafted Terraform configuration. This vulnerability is fixed in Terraform 1.5.7.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00268 19th percentileScored 2026-11-07
Fix Fixed Terraform (HashiCorp): 1.5.7github.com/hashicorp/terraform (Go): 1.5.7

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
HashiCorpTerraform1.0.8 to before 1.5.71.5.7Patch availableCNA
—github.com/hashicorp/terraform (Go)1.0.8 to before 1.5.71.5.7Patch availableGHSA-h626-pv66-hhm7
  • Terraform VendorHashiCorp Affected 1.0.8 to before 1.5.7 Fixed in 1.5.7 Patch available CNA
  • github.com/hashicorp/terraform (Go) Vendor— Affected 1.0.8 to before 1.5.7 Fixed in 1.5.7 Patch available GHSA-h626-pv66-hhm7

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:hashicorp:terraform:*:*:*:*:*:-:*:*1.0.8 to before 1.5.7VulnerableHashiCorp
  • cpe:2.3:a:hashicorp:terraform:*:*:*:*:*:-:*:* Versions 1.0.8 to before 1.5.7 Vulnerable ·HashiCorp

Remediation

  • Fix · CNA Terraform (HashiCorp) Fixed in 1.5.7
  • Fix · GHSA-h626-pv66-hhm7 github.com/hashicorp/terraform (Go) Fixed in 1.5.7 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-4782
  2. 2026-10-03 Alias added: GHSA-h626-pv66-hhm7

References

  • TI-2018-06575 aws/resource_aws_iam_user_login_profile.go in the HashiCorp Terraform Amazon Web Services… CVSS 3.0CRITICAL 9.8
  • TI-2021-14637 HashiCorp Terraform Enterprise releases up to v202106-1 did not properly perform… CVSS 3.1HIGH 8.8
  • TI-2019-13932 When using the Azure backend with a shared access signature (SAS), Terraform versions… CVSS 3.1HIGH 7.5
  • TI-2025-12279 Terraform Enterprise state versions can be created by users with specific permissions without sufficient write access CVSS 3.1MEDIUM 4.3

Sources