Vulnerability Details : CVE-2023-4782
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 category: Directory traversal
Products affected by CVE-2023-4782
- cpe:2.3:a:hashicorp:terraform:*:*:*:*:*:-:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-4782
0.04%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 8 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-4782
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.8
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
NIST | |
6.3
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:N |
1.1
|
4.7
|
HashiCorp Inc. |
CWE ids for CVE-2023-4782
-
The product 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 product 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.Assigned by:
- nvd@nist.gov (Primary)
- security@hashicorp.com (Secondary)
References for CVE-2023-4782
-
https://discuss.hashicorp.com/t/hcsec-2023-27-terraform-allows-arbitrary-file-write-during-init-operation/58082
HCSEC-2023-27 - Terraform Allows Arbitrary File Write During Init Operation - Security - HashiCorp DiscussVendor Advisory
Jump to