Vulnerability · Published Aug 16, 2026 · Assigned by VulnCheck

CVE-2024-58375OpenTofu before 1.8.3 Secret Variable Leaking via Static Evaluation

High 7.5

In plain English

A high-severity security flaw in opentofu from opentofu. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.4%top 62.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/opentofu/opentofu1.8.3GO-2024-3182
Gogithub.com/opentofu/opentofu1.8.3GHSA-wpr2-j6gr-pjw9

Affected products (as reported)

VendorProductVersions
opentofu opentofu 0 – before 1.8.3

Weakness: CWE-497 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References