GHSA-wpr2-j6gr-pjw9: 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.
Published Oct 3, 2024 · Updated Oct 9, 2024
Affected packages
github.com/opentofu/opentofu
- Ecosystem
- Go
- Affected
- >= 1.8.0, < 1.8.3
- Fixed in
- 1.8.3
- Check
go list -m github.com/opentofu/opentofu
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
variable "backend_path" {
type = string
sensitive = true
}
terraform {
backend "local" {
path = var.backend_path
}
}variable "mod_info" {
type = string
sensitive = true
}
module "foo" {
source = var.mod_info
//version = var.mod_info
}References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-22w5-2fxg-vrwx
OpenTofu has high CPU usage when using K8S remote state backend or when parsing specifically crafted TLS certificates from untrusted or compromised servers
low2.6Aug 20, 2026GHSA-wcmj-x466-56mm
OpenTofu: Provider cache installation follows root-module-controlled package directory symlink and writes outside the working tree
medium6.1Jun 23, 2026GHSA-q7j3-v8qv-22vq
OpenTofu: Possible arbitrary file read during certain git operations via a maliciously crafted URL
high7.5Jun 19, 2026GHSA-pxh5-6rrc-8rjv
OpenTofu: Excessive resource usage in "tofu init" when installing dependencies from attacker-controlled server
low3.1May 20, 2026GHSA-hw5x-4r37-72w7
OpenTofu has unbounded memory usage, high CPU usage, or deadlock in "tofu init" with maliciously-crafted dependency responses
low3.1Apr 14, 2026GHSA-r92c-9c7f-3pj8
OpenTofu has High CPU usage in "tofu init" with maliciously-crafted module packages in .zip format
low3.1Jan 21, 2026
