CVE-2024-58375

OpenTofu before 1.8.3 Secret Variable Leaking via Static Evaluation

Published Aug 16, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Opentofu
Opentofu opentofu
Vendors & Products Opentofu
Opentofu opentofu
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'}

Weaknesses
  • CWE-497

    Exposure of Sensitive System Information to an Unauthorized Control Sphere

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:21 PM
Reserved
Aug 16, 2026, 1:02 PM
Status
Awaiting Analysis
Published
Aug 16, 2026, 2:16 PM
Modified
Oct 8, 2026, 4:16 PM
Severity
Moderate
Public date
Aug 16, 2026, 1:14 PM