{"id":"CVE-2023-4782","aliases":["AZL-29705","EUVD-2023-2517","GHSA-h626-pv66-hhm7","GO-2023-2055"],"status":"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.","severity":{"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00268,"percentile":0.19026,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2023-09-08T17:04:33Z","modified":"2026-10-28T02:30:58Z","fixes":[{"ecosystem":"Go","package":"github.com/hashicorp/terraform","fixed_in":["1.5.7"],"sources":["ghsa","osv"]},{"ecosystem":"Azure Linux:2","package":"terraform","fixed_in":["1.3.2-19"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/hashicorp/terraform","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.8"},{"fixed":"1.5.7"}]}]},{"source":"osv","ecosystem":"Azure Linux:2","package":"terraform","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.2-19"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/hashicorp/terraform","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.8"},{"fixed":"1.5.7"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/hashicorp/terraform","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.8"},{"fixed":"1.5.7"}]}]}],"products":[{"vendor":"hashicorp","product":"terraform"}],"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://nvd.nist.gov/vuln/detail/CVE-2023-4782","tags":["web","advisory"]},{"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"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4782.json","tags":["advisory"]},{"url":"https://github.com/hashicorp/terraform","tags":["package"]}],"sources":{"cve":[{"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.","status":"published","published":"2023-09-08T17:04:33.242Z","modified":"2024-09-26T14:05:36.006Z","cvss":[{"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","level":"medium","assessor":"cna"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:35:30.474787Z"}],"euvd":[{"id":"EUVD-2023-2517","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.","status":"published","published":"2023-09-08T17:04:33Z","modified":"2024-09-26T14:05:36Z","cvss":[{"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","level":"medium"}],"updated_at":"2026-11-03T00:28:10.432496Z"}],"ghsa":[{"id":"GHSA-h626-pv66-hhm7","title":"Terraform allows arbitrary file write during the `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.","status":"published","published":"2023-09-08T18:30:29Z","modified":"2023-11-07T05:04:33Z","cvss":[{"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","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:37:15.055009Z"}],"nvd":[{"id":"CVE-2023-4782","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.","status":"published","published":"2023-09-08T18:15:07.707Z","modified":"2026-06-17T06:38:35.263Z","cvss":[{"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","level":"medium","assessor":"secondary"},{"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","level":"high","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:08:28.268644Z"}],"osv":[{"id":"AZL-29705","title":"CVE-2023-4782 affecting package terraform for versions less than 1.3.2-19","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.","status":"published","published":"2023-09-08T18:15:07Z","modified":"2026-04-21T04:26:03.790783Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T15:28:03.46006Z"},{"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.","status":"published","published":"2023-09-08T17:04:33.242Z","modified":"2026-10-28T02:30:58.438152546Z","cvss":[{"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","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:44:34.72355Z"},{"id":"GHSA-h626-pv66-hhm7","title":"Terraform allows arbitrary file write during the `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.","status":"published","published":"2023-09-08T18:30:29Z","modified":"2024-08-21T14:56:52.851383Z","cvss":[{"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","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:48.546324Z"},{"id":"GO-2023-2055","title":"Terraform allows arbitrary file write during the `init` operation in github.com/hashicorp/terraform","description":"Terraform allows arbitrary file write during the `init` operation in github.com/hashicorp/terraform","status":"published","published":"2024-08-21T14:30:18Z","modified":"2026-03-03T04:54:09.394727Z","updated_at":"2026-11-02T15:47:01.185262Z"}]}}
