CVE-2024-58375
highpriority · track · 0EPSS 0.004 · 37 %ileDEEUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–high · 3.7–8.7
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-2864OpenTofu: Mehrere SchwachstellenDeutsch2026-08-16csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in OpenTofu ausnutzen, um Informationen offenzulegen, Daten zu manipulieren und einen Denial-of-Service-Zustand auszulösen.
- GHSA-wpr2-j6gr-pjw9OpenTofu potential leaking of secret variable values when using static evaluation in v1.82024-10-03ghsa · osvUS
### Impact Users who have opted into static evaluation of module sources, versions, and backend configurations may be at risk of exposing sensitive variables and locals. This is a workflow that should not be possible and explicitly show errors. ### Workarounds Check that you are not using sensitive variables in module sources and versions, as well as backend configurations. The patch will add explicit errors and prevent this from being possible. ### Examples ```hcl variable "backend_path" { type = string sensitive = true } terraform { backend "local" { path = var.backend_path } } ``` ```hcl variable "mod_info" { type = string sensitive = true } module "foo" { source = var.mod_info //version = var.mod_info } ```
- GO-2024-3182OpenTofu potential leaking of secret variable values when using static evaluation in v1.8 in github.com/opentofu/opentofu2024-10-09vendor · osvUS
OpenTofu potential leaking of secret variable values when using static evaluation in v1.8 in github.com/opentofu/opentofu
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (4)
External citations — patches, advisories, analysis.
- https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9enisa_euvd
- https://www.vulncheck.com/advisories/opentofu-before-secret-variable-leaking-via-static-evaluationenisa_euvd
- https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9nvd
- https://www.vulncheck.com/advisories/opentofu-before-secret-variable-leaking-via-static-evaluationnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan