medium6.3
CVE-2023-4782
Terraform allows arbitrary file write during the `init` operation
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/hashicorp/terraform | >= 1.0.8, < 1.5.7 | 1.5.7 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Hashicorp | Terraform | from 1.0.8 before 1.5.7 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082
- https://github.com/advisories/GHSA-h626-pv66-hhm7
- 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/releases/tag/v1.5.7