Arbitrary File Write in Terraform 1.0.8-1.5.6 (init) Fixed in 1.5.7
CVE-2023-4782 Published on September 8, 2023
Terraform Allows Arbitrary File Write During 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.
Vulnerability Analysis
CVE-2023-4782 is exploitable with local system access, requires user interaction and user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a small impact on confidentiality, a high impact on integrity, and no impact on availability.
Weakness Type
What is a Directory traversal Vulnerability?
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CVE-2023-4782 has been classified to as a Directory traversal vulnerability or weakness.
Products Associated with CVE-2023-4782
stack.watch emails you whenever new vulnerabilities are published in HashiCorp Terraform or Oracle. Just hit a watch button to start following.
Affected Versions
HashiCorp Terraform:- Version 1.0.8 and below 1.5.7 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.