What’s Vulnerable › Vulnerabilities
CVE-2024-58375: OpenTofu before 1.8.3 Secret Variable Leaking via Static Evaluation
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-16 · updated 2026-10-08
- Weakness: CWE-497
Description
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 products
- opentofu: before 1.8.3 — fixed in 1.8.3
How to fix
Upgrade to a fixed version: opentofu 1.8.3. Check the vendor advisory for mitigations.
References
- https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9
- https://www.vulncheck.com/advisories/opentofu-before-secret-variable-leaking-via-static-evaluation
Get alerted when CVE-2024-58375 or the next vulnerability affects your stack