🛡️ GHSA-wpr2-j6gr-pjw9 — opentofu

🟢 CVSS 2.0 — Low ✅ No Known Exploit CWE-200 OSV
2.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

OpenTofu potential leaking of secret variable values when using static evaluation in v1.8

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

}

```

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality low, integrity none, availability none.

Weakness class

GHSA-wpr2-j6gr-pjw9 is classified as CWE-200: Exposure of Sensitive Information. Information that should stay internal is disclosed to someone who is not authorised to see it.

Affected software

GHSA-wpr2-j6gr-pjw9 is recorded against 1 package.

  • github.com/opentofu/opentofu

Timeline and source

Published on 3 October 2024 and last revised on 9 October 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Package)
pkg.go.dev (Web)

Details

Severity LOW
CVSS Score 2.0
CVSS Vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
CWE CWE-200
Public Exploit ✅ No
Source OSV
Published 2024-10-03
Updated 2026-08-12
Modified 2024-10-09
Fix URL N/A

Affected Packages

Software From version Fixed in
github.com/opentofu/opentofu

Similar Threats

Free Vulnerability Check

Is your site affected by GHSA-wpr2-j6gr-pjw9?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-wpr2-j6gr-pjw9 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated