Security mailing lists by PureSourceCode

CVE-2023-4782

HIGH 7.8CVSS 3.1

Terraform allows arbitrary file write during the `init` operation

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
8 Sep 2023
Last modified
17 Jun 2026
Assigned by
security@hashicorp.com
NVD status
Modified
Weakness
CWE-22
Also known as
GHSA-h626-pv66-hhm7GO-2023-2055
Sources
NVDJSONOSV GHSA-h626-pv66-hhm7JSONOSV GO-2023-2055JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD security@hashicorp.com (Secondary) CVSS 3.1 MEDIUM 6.3 CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.3 CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD hashicorp terraform
cpe:2.3:a:hashicorp:terraform:*:*:*:*:*:-:*:*
>= 1.0.8, < 1.5.7 1.5.7
OSV Go github.com/hashicorp/terraform >= 1.0.8, < 1.5.7 1.5.7

References

History

  • 25 Nov 2026 20:36 UTC · NVD: first stored (published 8 Sep 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 8 Sep 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.