Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/hashicorp/terraform
  4. ›
  5. CVE-2023-4782

CVE-2023-4782: Terraform allows arbitrary file write during the `init` operation

September 8, 2023

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.

References

  • discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082
  • github.com/advisories/GHSA-h626-pv66-hhm7
  • github.com/hashicorp/terraform/commit/0f2314fb62193c4be94328cc026fcb7ec1e9b893
  • github.com/hashicorp/terraform/pull/33745
  • github.com/hashicorp/terraform/releases/tag/v1.5.7
  • nvd.nist.gov/vuln/detail/CVE-2023-4782

Code Behaviors & Features

Detect and mitigate CVE-2023-4782 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.8 before 1.5.7

Fixed versions

  • 1.5.7

Solution

Upgrade to version 1.5.7 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

go/github.com/hashicorp/terraform/CVE-2023-4782.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:47 +0000.