🛡️ GHSA-wpr2-j6gr-pjw9 — opentofu
Description
OpenTofu potential leaking of secret variable values when using static evaluation in v1.8
Impact
Users who have opted into static evaluation of module sources, versions, and backend configurations may be at risk of exposing sensitive variables and locals. This is a workflow that should not be possible and explicitly show errors.
Workarounds
Check that you are not using sensitive variables in module sources and versions, as well as backend configurations. The patch will add explicit errors and prevent this from being possible.
Examples
```hcl
variable "backend_path" {
type = string
sensitive = true
}
terraform {
backend "local" {
path = var.backend_path
}
}
```
```hcl
variable "mod_info" {
type = string
sensitive = true
}
module "foo" {
source = var.mod_info
//version = var.mod_info
}
```
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality low, integrity none, availability none.
Weakness class
GHSA-wpr2-j6gr-pjw9 is classified as CWE-200: Exposure of Sensitive Information. Information that should stay internal is disclosed to someone who is not authorised to see it.
Affected software
GHSA-wpr2-j6gr-pjw9 is recorded against 1 package.
- github.com/opentofu/opentofu
Timeline and source
Published on 3 October 2024 and last revised on 9 October 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
Details
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| github.com/opentofu/opentofu | — | — |
References
Similar Threats
- Unknown GO-2026-5558
- Unknown GO-2026-5705
- Unknown GO-2026-5441
- Unknown GO-2026-5571
- Unknown GHSA-wcmj-x466-56mm
Free Vulnerability Check
Is your site affected by GHSA-wpr2-j6gr-pjw9?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-wpr2-j6gr-pjw9 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.