{"id":"CVE-2024-58375","title":"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","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 m…","severity":"high","cvss":7.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","cwe":["CWE-497"],"vendor":"opentofu","product":"github.com/opentofu/opentofu","affected":["github.com/opentofu/opentofu >= 1.8.0, < 1.8.3"],"patched":["github.com/opentofu/opentofu 1.8.3"],"published":"2026-08-16","updated":"2026-09-08","sourceUpdated":"2026-09-08T20:28:37.587","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-58375","references":[{"url":"https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9","label":"disclosure@vulncheck.com"},{"url":"https://www.vulncheck.com/advisories/opentofu-before-secret-variable-leaking-via-static-evaluation","label":"disclosure@vulncheck.com"},{"url":"https://github.com/opentofu/opentofu"},{"url":"https://pkg.go.dev/vuln/GO-2024-3182"}],"tags":["nvd","osv","go","score-dispute"],"epss":0.00255,"epssPercentile":0.17301,"aliases":["GHSA-wpr2-j6gr-pjw9","GO-2024-3182"],"ecosystem":"go","scores":{"nvd":7.5,"osv":3.7},"ingestedAt":"2026-08-17T19:20:56.119Z","slug":"CVE-2024-58375","body":"## Overview\n\nOpenTofu 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Package advisory (CVE-2024-58375)\n\nAffected packages:\n\n- `github.com/opentofu/opentofu >= 1.8.0, < 1.8.3`\n\nPatched in:\n\n- `github.com/opentofu/opentofu 1.8.3`\n\nSource: https://osv.dev/vulnerability/GHSA-wpr2-j6gr-pjw9","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[{"seq":8157,"id":"CVE-2024-58375","ts":1788919964942,"field":"cvss","old":"3.7","new":"7.5"},{"seq":8156,"id":"CVE-2024-58375","ts":1788919964942,"field":"severity","old":"low","new":"high"},{"seq":7966,"id":"CVE-2024-58375","ts":1788919253105,"field":"cvss","old":"7.5","new":"3.7"},{"seq":7965,"id":"CVE-2024-58375","ts":1788919253105,"field":"severity","old":"high","new":"low"},{"seq":7775,"id":"CVE-2024-58375","ts":1788916325538,"field":"cvss","old":"3.7","new":"7.5"},{"seq":7774,"id":"CVE-2024-58375","ts":1788916325538,"field":"severity","old":"low","new":"high"},{"seq":7584,"id":"CVE-2024-58375","ts":1788915270758,"field":"cvss","old":"7.5","new":"3.7"},{"seq":7583,"id":"CVE-2024-58375","ts":1788915270758,"field":"severity","old":"high","new":"low"},{"seq":7393,"id":"CVE-2024-58375","ts":1788912685389,"field":"cvss","old":"3.7","new":"7.5"},{"seq":7392,"id":"CVE-2024-58375","ts":1788912685389,"field":"severity","old":"low","new":"high"},{"seq":7202,"id":"CVE-2024-58375","ts":1788911303070,"field":"cvss","old":"7.5","new":"3.7"},{"seq":7201,"id":"CVE-2024-58375","ts":1788911303070,"field":"severity","old":"high","new":"low"},{"seq":7009,"id":"CVE-2024-58375","ts":1788909054356,"field":"cvss","old":"3.7","new":"7.5"},{"seq":7008,"id":"CVE-2024-58375","ts":1788909054356,"field":"severity","old":"low","new":"high"},{"seq":6821,"id":"CVE-2024-58375","ts":1788907367398,"field":"cvss","old":"7.5","new":"3.7"},{"seq":6820,"id":"CVE-2024-58375","ts":1788907367398,"field":"severity","old":"high","new":"low"},{"seq":6629,"id":"CVE-2024-58375","ts":1788905421803,"field":"cvss","old":"3.7","new":"7.5"},{"seq":6628,"id":"CVE-2024-58375","ts":1788905421803,"field":"severity","old":"low","new":"high"},{"seq":6447,"id":"CVE-2024-58375","ts":1788903435861,"field":"cvss","old":"7.5","new":"3.7"},{"seq":6446,"id":"CVE-2024-58375","ts":1788903435861,"field":"severity","old":"high","new":"low"},{"seq":6418,"id":"CVE-2024-58375","ts":1788901910003,"field":"cvss","old":"3.7","new":"7.5"},{"seq":6417,"id":"CVE-2024-58375","ts":1788901910003,"field":"severity","old":"low","new":"high"}]}