{"id":"CVE-2024-58375","aliases":["GHSA-wpr2-j6gr-pjw9","GO-2024-3182"],"summary":"OpenTofu before 1.8.3 Secret Variable Leaking via Static Evaluation","published_at":"2024-10-03T16:51:50Z","modified_at":"2026-10-08T15:21:10.813Z","products":[{"slug":"opentofu","name":"OpenTofu","category":"iac"}],"rating":{"severity":"high","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.00431999983265996,"percentile":0.38350000977516174,"date":"2026-11-20T00:00:00Z"},"priority":10.7,"record_count":5,"vendors":["Red Hat","BSI","GitHub","Go"],"details":"OpenTofu versions 1.8.0 through 1.8.2 do not properly restrict sensitive variables and locals when users have opted into static evaluation of module sources, versions, and backend configurations. As a result, values marked as sensitive may be exposed through these configuration elements instead of producing an error. This is fixed in OpenTofu 1.8.3, which adds explicit errors to prevent the use of sensitive values in these contexts.","affected_stack":[{"ecosystem":"Go","package":"github.com/opentofu/opentofu","purl":"pkg:golang/github.com/opentofu/opentofu","ranges":[{"type":"SEMVER","events":[{"introduced":"1.8.0"},{"fixed":"1.8.3"}]}],"fixed":["1.8.3"],"provider":"osv","source":"GHSA-wpr2-j6gr-pjw9","relation":"self"},{"ecosystem":"Go","package":"github.com/opentofu/opentofu","purl":"pkg:golang/github.com/opentofu/opentofu","ranges":[{"type":"SEMVER","events":[{"introduced":"1.8.0"},{"fixed":"1.8.3"}]}],"fixed":["1.8.3"],"provider":"osv","source":"GO-2024-3182","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"opentofu/opentofu","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.3"}]}],"fixed":["1.8.3"],"provider":"cvelistv5","source":"CVE-2024-58375","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"not_affected","packages":["hi/opentofu","opentofu1.10","opentofu1.11","opentofu1.12"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-58375"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-2864","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2864","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-08-16T22:00:00Z","modified_at":"2026-08-16T22:00:00Z","summary":"OpenTofu: Mehrere Schwachstellen","details":"Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in OpenTofu ausnutzen, um Informationen offenzulegen, Daten zu manipulieren und einen Denial-of-Service-Zustand auszulösen.\n\nOpenTofu ist ein Open-Source Infrastructure-as-Code-Tool, mit dem man Infrastruktur über verschiedene Anbieter hinweg deklarativ definieren, verwalten und bereitstellen kann.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2026-2864"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2864.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2864"},{"type":"WEB","url":"https://github.com/advisories/GHSA-P8HV-X2CR-398F"},{"type":"WEB","url":"https://github.com/advisories/GHSA-69hj-5jh6-6q99"},{"type":"WEB","url":"https://github.com/advisories/GHSA-3VH9-9FRP-JHQV"}]},{"provider":"cvelistv5","source_id":"CVE-2024-58375","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2024-58375","license":"CC-BY-4.0","published_at":"2026-08-16T13:14:03.955Z","modified_at":"2026-10-08T15:21:10.813Z","summary":"OpenTofu before 1.8.3 Secret Variable Leaking via Static Evaluation","details":"OpenTofu versions 1.8.0 through 1.8.2 do not properly restrict sensitive variables and locals when users have opted into static evaluation of module sources, versions, and backend configurations. As a result, values marked as sensitive may be exposed through these configuration elements instead of producing an error. This is fixed in OpenTofu 1.8.3, which adds explicit errors to prevent the use of sensitive values in these contexts.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","source":"CVE-2024-58375"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CVE-2024-58375"}],"affected":[{"ecosystem":"CVE","package":"opentofu/opentofu","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.3"}]}],"fixed":["1.8.3"],"provider":"cvelistv5","source":"CVE-2024-58375","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/opentofu-before-secret-variable-leaking-via-static-evaluation"}]},{"provider":"osv","source_id":"GHSA-wpr2-j6gr-pjw9","relation":"self","url":"https://osv.dev/vulnerability/GHSA-wpr2-j6gr-pjw9","license":"CC-BY-4.0","published_at":"2024-10-03T16:51:50Z","modified_at":"2026-08-17T03:55:42.801423Z","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```","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","source":"GHSA-wpr2-j6gr-pjw9"},{"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","source":"GHSA-wpr2-j6gr-pjw9"}],"affected":[{"ecosystem":"Go","package":"github.com/opentofu/opentofu","purl":"pkg:golang/github.com/opentofu/opentofu","ranges":[{"type":"SEMVER","events":[{"introduced":"1.8.0"},{"fixed":"1.8.3"}]}],"fixed":["1.8.3"],"provider":"osv","source":"GHSA-wpr2-j6gr-pjw9","relation":"self"}],"product_status":[],"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"}]},{"provider":"osv","source_id":"GO-2024-3182","relation":"self","url":"https://osv.dev/vulnerability/GO-2024-3182","license":"CC-BY-4.0","published_at":"2024-10-09T20:29:23Z","modified_at":"2026-08-17T03:55:42.801423Z","summary":"OpenTofu potential leaking of secret variable values when using static evaluation in v1.8 in github.com/opentofu/opentofu","details":"OpenTofu potential leaking of secret variable values when using static evaluation in v1.8 in github.com/opentofu/opentofu","severity":[],"affected":[{"ecosystem":"Go","package":"github.com/opentofu/opentofu","purl":"pkg:golang/github.com/opentofu/opentofu","ranges":[{"type":"SEMVER","events":[{"introduced":"1.8.0"},{"fixed":"1.8.3"}]}],"fixed":["1.8.3"],"provider":"osv","source":"GO-2024-3182","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9"}]},{"provider":"redhat-vex","source_id":"CVE-2024-58375","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2024-58375","license":"CC-BY-4.0","published_at":"2026-08-16T13:14:03.955Z","modified_at":"2026-08-18T09:51:01Z","summary":"github.com/opentofu/opentofu: OpenTofu: Sensitive information disclosure via static evaluation","details":"A flaw was found in OpenTofu. When users enable static evaluation of module sources, versions, and backend configurations, the software does not properly restrict sensitive variables and locals. This oversight can lead to the exposure of values intended to be sensitive through these configuration elements, resulting in an information disclosure vulnerability.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CVE-2024-58375"},{"type":"Red Hat","score":"Moderate","source":"CVE-2024-58375"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"not_affected","packages":["hi/opentofu","opentofu1.10","opentofu1.11","opentofu1.12"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-58375"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-58375.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-58375"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2517223"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-58375"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58375"},{"type":"WEB","url":"https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/opentofu-before-secret-variable-leaking-via-static-evaluation"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/opentofu-before-secret-variable-leaking-via-static-evaluation"},{"type":"PACKAGE","url":"https://github.com/opentofu/opentofu"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2024-3182"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-58375.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-58375"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2517223"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-58375"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58375"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-2864","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-2864","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-08-16T22:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2024-58375","url":"https://www.cve.org/CVERecord?id=CVE-2024-58375","license":"CC-BY-4.0","modified_at":"2026-10-08T15:21:10.813Z","relation":"self"},{"provider":"osv","source_id":"GHSA-wpr2-j6gr-pjw9","url":"https://osv.dev/vulnerability/GHSA-wpr2-j6gr-pjw9","license":"CC-BY-4.0","modified_at":"2026-08-17T03:55:42.801423Z","relation":"self"},{"provider":"osv","source_id":"GO-2024-3182","url":"https://osv.dev/vulnerability/GO-2024-3182","license":"CC-BY-4.0","modified_at":"2026-08-17T03:55:42.801423Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2024-58375","url":"https://access.redhat.com/security/cve/CVE-2024-58375","license":"CC-BY-4.0","modified_at":"2026-08-18T09:51:01Z","relation":"self"}]}
