{"id":"CVE-2023-4782","published":"2023-09-08T17:04:33Z","modified":"2024-09-26T14:05:36Z","title":"Terraform Allows Arbitrary File Write During Init Operation","vendor":"HashiCorp","product":"Terraform","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00268,"percentile":0.19313,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082","tags":[]}],"priority":{"score":8.3,"factors":[{"name":"EPSS percentile","points":3.86},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"hashicorp","affectedVersions":[{"vendor":"HashiCorp","product":"Terraform","versions":[">= 1.0.8, < 1.5.7"]}],"capec":[{"id":"CAPEC-126","name":"Path Traversal"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-26T13:59:31.337903Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/hashicorp/terraform","vulnerableRanges":[">=1.0.8, <1.5.7"],"patched":["1.5.7"],"from":["GHSA-h626-pv66-hhm7","GO-2023-2055"],"provenance":"source"}],"summary":{"text":"The flaw is an arbitrary file write in HashiCorp's Terraform, affecting the init operation when it is run against a maliciously crafted Terraform configuration. An attacker who can supply such a configuration and get it run through init, which requires high privileges and user interaction, can write files to arbitrary locations on the system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:21Z"},"euvd":{"id":"EUVD-2023-2517","exploited":false,"provenance":"source"}}