CVE-2024-58375
HIGH 8.7CVSS 4.0OpenTofu potential leaking of secret variable values when using static evaluation in v1.8
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.
- Published
- 16 Aug 2026
- Last modified
- 8 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-200CWE-497
- Also known as
- GHSA-wpr2-j6gr-pjw9GO-2024-3182
- Sources
- NVDJSONOSV GHSA-wpr2-j6gr-pjw9JSONOSV GO-2024-3182JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/opentofu/opentofu | >= 1.8.0, < 1.8.3 | 1.8.3 |
References
- https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9 · WEB, ADVISORY
- https://www.vulncheck.com/advisories/opentofu-before-secret-variable-leaking-via-static-evaluation
- https://github.com/opentofu/opentofu · PACKAGE
- https://pkg.go.dev/vuln/GO-2024-3182 · WEB
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 16 Aug 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Oct 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Oct 2024)