{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-4782","id":"CVE-2023-4782","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.","descriptionLong":"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.","published":"2023-09-08T17:04:33.242Z","updated":"2026-10-28T02:30:58.438152546Z","reserved":"2023-09-05T20:20:17.024Z","status":"Modified","rejected":false,"assigner":"HashiCorp","metric":{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N","rating":"medium","source":"HashiCorp"},"metrics":[{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N","rating":"medium","source":"HashiCorp"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N","rating":"medium","source":"hashicorp.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["HashiCorp Terraform"],"affectedProducts":[{"vendor":"HashiCorp","product":"Terraform","defaultStatus":"unaffected","versions":[{"status":"affected","version":"1.0.8","lessThan":"1.5.7","versionType":"semver"}],"platforms":["Windows","MacOS","Linux","x86","ARM","64 bit","32 bit"]}],"packages":[{"ecosystem":"Go","name":"github.com/hashicorp/terraform","purl":"pkg:golang/github.com/hashicorp/terraform","ranges":[">=1.0.8 <1.5.7"],"fixed":["1.5.7"],"advisory":"GHSA-h626-pv66-hhm7"}],"cwes":["CWE-22"],"aliases":["GHSA-h626-pv66-hhm7","GO-2023-2055"],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082","tags":["x_transferred","Vendor Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4782.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4782","tags":["advisory"]},{"url":"https://github.com/hashicorp/terraform","tags":["package"]},{"url":"https://github.com/hashicorp/terraform/pull/33745","tags":["web","fix"]},{"url":"https://github.com/hashicorp/terraform/commit/0f2314fb62193c4be94328cc026fcb7ec1e9b893","tags":["web","fix"]},{"url":"https://github.com/hashicorp/terraform/releases/tag/v1.5.7","tags":["web"]},{"url":"https://github.com/advisories/GHSA-h626-pv66-hhm7","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00268,"epssPercentile":0.19189,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-4782","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4782","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-4782","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-h626-pv66-hhm7","ok":true,"note":"GHSA-h626-pv66-hhm7"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-4782","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}