{"id":"CVE-2023-4782","state":"PUBLISHED","title":"Terraform Allows Arbitrary File Write During Init Operation","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.","publishedAt":"2023-09-08T17:04:33.242Z","updatedAt":"2024-09-26T14:05:36.006Z","severity":{"score":6.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N","source":"HashiCorp"},"assigner":"HashiCorp","products":["HashiCorp Terraform"],"affected":[{"vendor":"HashiCorp","product":"Terraform","defaultStatus":"unaffected","versions":[{"version":"1.0.8","status":"affected","lessThan":"1.5.7","versionType":"semver"}],"platforms":["Windows","MacOS","Linux","x86","ARM","64 bit","32 bit"],"repo":"https://github.com/hashicorp/terraform"}],"references":["https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/4xxx/CVE-2023-4782.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-4782","state":"PUBLISHED","datePublished":"2023-09-08T17:04:33.242Z","dateUpdated":"2024-09-26T14:05:36.006Z","assignerShortName":"HashiCorp","assignerOrgId":"67fedba0-ff2e-4543-ba5b-aa93e87718cc","dateReserved":"2023-09-05T20:20:17.024Z"},"containers":{"cna":{"title":"Terraform Allows Arbitrary File Write During Init Operation","descriptions":[{"lang":"en","value":"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":[{"vendor":"HashiCorp","product":"Terraform","defaultStatus":"unaffected","versions":[{"version":"1.0.8","status":"affected","lessThan":"1.5.7","versionType":"semver"}],"platforms":["Windows","MacOS","Linux","x86","ARM","64 bit","32 bit"],"repo":"https://github.com/hashicorp/terraform"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"HIGH","availabilityImpact":"NONE","baseSeverity":"MEDIUM","baseScore":6.3,"vectorString":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"HashiCorp","orgId":"67fedba0-ff2e-4543-ba5b-aa93e87718cc","dateUpdated":"2023-09-08T17:04:33.242Z"},"impacts":[{"capecId":"CAPEC-126","descriptions":[{"lang":"en","value":"CAPEC-126: Path Traversal"}]}],"source":{"advisory":"HCSEC-2023-27","discovery":"EXTERNAL"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T07:38:00.485Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-26T13:59:31.337903Z","id":"CVE-2023-4782","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-26T14:05:36.006Z"}}]}}}