SecurityContext

CVE-2023-4782: Terraform - Path Traversal

  • Cve: CVE-2023-4782
  • Name: Terraform - Path Traversal
  • 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.
  • Impact: Attackers can write arbitrary files on the system, potentially leading to code execution or system compromise.
  • Remediation: Upgrade to Terraform 1.5.7 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00268
  • Epss percentile: 0.19087
  • Assignee: [email protected]
  • Published at: 2023-09-08T18:15:07Z
  • Age in days: 1173
  • Modified at: 2026-06-17T06:38:35Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-4782
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Hackerone

  • Reports: 1
  • Rank: 5211

References

UrlSourceTags
https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082nvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
hashicorp:terraform>= 1.0.8, < 1.5.7nonvd/v1/products/hashicorp/terraform

Projects

RepositoryLink kindsIndexedUrl
hashicorp/terraformcommit, package, pull, releasesyes/v1/repositories/hashicorp/terraform

Index

  • Repositories: 1
  • Packages: 1
  • Checked, none or zero: repositories high signal

Exploitation

  • Authentication required: yes
  • Hackerone reports: 1
  • Exposed hosts: 174
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since