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.

NVD

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.

Attack Vector:
LOCAL
Attack Complexity:
LOW
Privileges Required:
HIGH
User Interaction:
REQUIRED
Scope:
CHANGED
Confidentiality Impact:
LOW
Integrity Impact:
HIGH
Availability Impact:
NONE

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:

Exploit Probability

EPSS
0.05%
Percentile
14.40%

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.