Live threats

All CVEs / Hashicorp

CVE-2023-4782Hashicorp Terraform

High 7.8

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Terraform.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
hashicorpterraform≥ 1.0.8 < 1.5.7

Official sources

References

Links published by the sources. Open them with care.