{"id":"CVE-2023-4782","summary":"Terraform Allows Arbitrary File Write During Init Operation","details":"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.","aliases":["GHSA-h626-pv66-hhm7","GO-2023-2055"],"modified":"2026-08-12T03:51:32.611782028Z","published":"2023-09-08T17:04:33.242Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4782.json","cna_assigner":"HashiCorp","cwe_ids":["CWE-22"]},"references":[{"type":"WEB","url":"https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4782.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4782"},{"type":"PACKAGE","url":"https://github.com/hashicorp/terraform"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/hashicorp/terraform","events":[{"introduced":"f5e8851e5e81493a759b4e313e7d8738cc9968e2"},{"fixed":"ee58ac1851c8a433005df9863ed47796a9f6b5e7"}],"database_specific":{"cpe":"cpe:2.3:a:hashicorp:terraform:*:*:*:*:*:-:*:*","extracted_events":[{"introduced":"1.0.8"},{"fixed":"1.5.7"}],"source":["AFFECTED_FIELD","CPE_RANGE"]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-4782.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N"}]}