{"id":"CVE-2024-58375","aliases":["CVE-2024-58375","GHSA-wpr2-j6gr-pjw9","GO-2024-3182"],"related":[],"kind":"vulnerability","state":"published","title":"OpenTofu before 1.8.3 Secret Variable Leaking via Static Evaluation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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```","format":"markdown","source":"ghsa"},{"lang":"en","text":"OpenTofu potential leaking of secret variable values when using static evaluation in v1.8 in github.com/opentofu/opentofu","format":"markdown","source":"go"},{"lang":"es","text":"Las versiones de OpenTofu 1.8.0 a 1.8.2 no restringen adecuadamente las variables y locales sensibles cuando los usuarios han optado por la evaluación estática de las fuentes de módulos, versiones y configuraciones de backend. Como resultado, los valores marcados como sensibles pueden quedar expuestos a través de estos elementos de configuración en lugar de producir un error. Esto se ha corregido en OpenTofu 1.8.3, que añade errores explícitos para evitar el uso de valores sensibles en estos contextos.","source":"nvd"}],"published":"2024-10-03T16:51:50.000Z","modified":"2026-10-08T16:16:49.483Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"}],"cwes":["CWE-200","CWE-497"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.8.3","status":"affected"},{"type":"semver","version":"1.8.3","status":"unaffected"}],"vendor":"opentofu","product":"opentofu","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.3"}],"ecosystem":"Go","package":"github.com/opentofu/opentofu","purl":"pkg:golang/github.com/opentofu/opentofu","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.3"}],"ecosystem":"Go","package":"github.com/opentofu/opentofu","purl":"pkg:golang/github.com/opentofu/opentofu","source":"go"}],"references":[{"url":"https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://www.vulncheck.com/advisories/opentofu-before-secret-variable-leaking-via-static-evaluation","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/opentofu/opentofu","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3182","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-17T15:35:43.732Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-58375","url":"https://www.cve.org/CVERecord?id=CVE-2024-58375","licence":"CVE Terms of Use","modified":"2026-10-08T15:21:10.813Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wpr2-j6gr-pjw9","url":"https://github.com/advisories/GHSA-wpr2-j6gr-pjw9","licence":"CC-BY-4.0","modified":"2026-08-17T03:55:42.801Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3182","url":"https://pkg.go.dev/vuln/GO-2024-3182","licence":"CC-BY-4.0","modified":"2026-08-17T03:55:42.801Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-58375","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58375","licence":"Public domain","modified":"2026-10-08T16:16:49.483Z"}],"updatedAt":"2026-11-25T22:58:53.065Z","epss":{"score":0.00255,"percentile":0.18176,"date":"2026-12-01T12:00:22.000Z"}}