{"cve":"CVE-2023-4782","nvd":{"published":"2023-09-08T18:15:07.707","modified":"2026-06-17T06:38:35.263","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-22"],"references":["https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082","https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082"],"products":["hashicorp:terraform"],"source":"nvd","synced_at":"2026-10-19T21:39:24.235896374+00:00"},"epss":{"cve":"CVE-2023-4782","score":0.00268,"percentile":0.18964,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h626-pv66-hhm7","url":"https://osv.dev/vulnerability/GHSA-h626-pv66-hhm7","summary":"Terraform allows arbitrary file write during the `init` operation","modified":"2024-08-21T14:56:52.851383Z","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"]}]},{"id":"GO-2023-2055","url":"https://osv.dev/vulnerability/GO-2023-2055","summary":"Terraform allows arbitrary file write during the `init` operation in github.com/hashicorp/terraform","modified":"2026-03-03T04:54:09.394727Z","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"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}