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.
Published: 2026-08-16
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

OpenTofu versions 1.8.0 through 1.8.2 have a flaw that allows sensitive variables to be exposed when users enable static evaluation of module sources, module versions, or backend configurations. The bug occurs because the software does not enforce its typical restriction and instead returns the sensitive values to configuration elements, compromising confidentiality of data that should remain hidden.

Affected Systems

The vulnerability affects all OpenTofu installations running versions 1.8.0, 1.8.1, 1.8.2 that have opted into static evaluation. These are deployments of the opentofu:opentofu product; no specific vendor or subsidiary product beyond OpenTofu is mentioned in the advisory.

Risk and Exploitability

The CVSS score of 8.7 classifies the issue as high severity. Exploitation is possible from any user who can provide module source files, specify module versions, or adjust backend configuration in a static‑evaluation context. Because the flaw only leaks data and does not provide an attacker with code execution or privilege escalation, the estimation of risk is that exposed secrets could be used for lateral movement or other operations. The EPSS score is unavailable, and the vulnerability has not been catalogued as a known exploited vulnerability (KEV). The likely attack vector is manipulating module sources or backend settings in environments that enable static evaluation.

Generated by OpenCVE AI on August 16, 2026 at 15:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to OpenTofu version 1.8.3 or later, which enforces errors on sensitive values in static evaluation contexts
  • If an upgrade is not immediately possible, disable static evaluation for module sources, version references, and backend configurations to prevent secret leakage
  • Ensure that sensitive variables are not used in any configuration elements that may become visible during static evaluation by auditing and tightening data handling practices

Generated by OpenCVE AI on August 16, 2026 at 15:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 16 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
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.
Title OpenTofu before 1.8.3 Secret Variable Leaking via Static Evaluation
Weaknesses CWE-497
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-16T13:14:03.955Z

Reserved: 2026-08-16T13:02:14.690Z

Link: CVE-2024-58375

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-16T14:16:53.627

Modified: 2026-08-16T14:16:53.627

Link: CVE-2024-58375

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-16T15:15:04Z

Weaknesses
  • CWE-497

    Exposure of Sensitive System Information to an Unauthorized Control Sphere