# CVE-2023-4782: Terraform Allows Arbitrary File Write During Init Operation

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-09-08 · Modified: 2024-09-26
- Aliases: GHSA-h626-pv66-hhm7, GO-2023-2055
- Record: https://cvemate.com/vulnerability/CVE-2023-4782 · JSON: https://cvemate.com/vulnerability/CVE-2023-4782/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.268%, percentile 20.147%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- github.com/hashicorp terraform (Go): ≥ 1.0.8, \< 1.5.7
- hashicorp terraform: ≥ 1.0.8, \< 1.5.7

## References

- <https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-4782>
- <https://github.com/hashicorp/terraform/pull/33745>
- <https://github.com/hashicorp/terraform/commit/0f2314fb62193c4be94328cc026fcb7ec1e9b893>
- <https://github.com/hashicorp/terraform>
- <https://github.com/hashicorp/terraform/releases/tag/v1.5.7>
- <https://github.com/advisories/GHSA-h626-pv66-hhm7>

---

Data as of 2026-12-05T10:32:38.559Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
