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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| HashiCorp | Terraform | 1.0.8 to before 1.5.7 | 1.5.7 | Patch available | CNA |
| — | github.com/hashicorp/terraform (Go) | 1.0.8 to before 1.5.7 | 1.5.7 | Patch available | GHSA-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
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
- 2026-10-02 Threatist record created from CVE-2023-4782
- 2026-10-03 Alias added: GHSA-h626-pv66-hhm7
References
Advisory 2
More HashiCorp Terraform vulnerabilities
- 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
- CVE-2023-4782 · CVE Program
- CVE-2023-4782 · NVD
- FIRST EPSS
- GHSA-h626-pv66-hhm7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences