{"id":"GHSA-wpr2-j6gr-pjw9","summary":"OpenTofu potential leaking of secret variable values when using static evaluation in v1.8","details":"### Impact\nUsers 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.\n\n### Workarounds\nCheck 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.\n\n### Examples\n```hcl\nvariable \"backend_path\" {\n        type = string\n        sensitive = true\n}\n\nterraform {\n        backend \"local\" {\n                path = var.backend_path\n        }\n}\n```\n\n```hcl\nvariable \"mod_info\" {\n        type = string\n        sensitive = true\n}\n\nmodule \"foo\" {\n        source = var.mod_info\n        //version = var.mod_info\n}\n```\n\n","aliases":["CVE-2024-58375","GO-2024-3182"],"modified":"2026-08-17T04:25:59.753150807Z","published":"2024-10-03T16:51:50Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-10-03T16:51:50Z","nvd_published_at":null,"cwe_ids":["CWE-200"],"severity":"LOW"},"references":[{"type":"WEB","url":"https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9"},{"type":"PACKAGE","url":"https://github.com/opentofu/opentofu"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2024-3182"}],"affected":[{"package":{"name":"github.com/opentofu/opentofu","ecosystem":"Go","purl":"pkg:golang/github.com/opentofu/opentofu"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.8.0"},{"fixed":"1.8.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-wpr2-j6gr-pjw9/GHSA-wpr2-j6gr-pjw9.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"CVSS_V4","score":"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"}]}