CVE-2023-4782Hashicorp Terraform
High 7.8
Follow: this CVE · Hashicorp · Hashicorp Terraform We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 21
- Auth required
- Yes
- Published
- Sep 8, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Terraform.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/hashicorp/terraform |
≥ 1.0.8 < 1.5.7 |
1.5.7 |
go get github.com/hashicorp/terraform@v1.5.7 |
| Go | github.com/hashicorp/terraform |
≥ 1.0.8 < 1.5.7 |
1.5.7 |
go get github.com/hashicorp/terraform@v1.5.7 |
Per OSV / GitHub Advisories (GHSA-h626-pv66-hhm7, GO-2023-2055). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| hashicorp | terraform | ≥ 1.0.8 < 1.5.7 |
Official sources
References
Links published by the sources. Open them with care.
- discuss.hashicorp.com Vendor Advisory