CVE-2023-4782: Terraform Allows Arbitrary File Write During Init Operation
Vulnerability summary
CVE-2023-4782 is a high (CVSS 7.8) vulnerability in hashicorp terraform. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 20.1% of scored vulnerabilities.
Not severe (CVSS 6.3, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 08-09-2023PublishedVulnerability first disclosed.
- 26-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA6.3MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:NDiffers
- OSV · GoEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:H/A:NDiffers
EPSS trend
Probability
0.27%
Chance of exploitation in the next 30 days
Percentile
20%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.27% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.
Github.com/hashicorp1 product
- terraform≥ 1.0.8, < 1.5.7
Hashicorp1 product
- terraform≥ 1.0.8, < 1.5.7
2 vendors · 2 products