hashicorp/terraform · Security
Terraform allows arbitrary file write during the `init` operation
- GHSA ID
- GHSA-h626-pv66-hhm7
- CVE ID
- CVE-2023-4782
- Severity
- medium
- Published
- Updated
- CVSS
- 6.3 · CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N
- CVSS v3
- 6.3 · CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N
Description
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.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-4782 ↗
- https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082 ↗
- https://github.com/hashicorp/terraform/pull/33745 ↗
- https://github.com/hashicorp/terraform/commit/0f2314fb62193c4be94328cc026fcb7ec1e9b893 ↗
- https://github.com/hashicorp/terraform/releases/tag/v1.5.7 ↗
- https://github.com/advisories/GHSA-h626-pv66-hhm7 ↗