Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/opentofu/opentofu
  4. ›
  5. GHSA-wcmj-x466-56mm

GHSA-wcmj-x466-56mm: OpenTofu: Provider cache installation follows root-module-controlled package directory symlink and writes outside the working tree

June 23, 2026

If a symlink already exists under the .terraform/providers directory where a provider package needs to be installed, tofu init would follow that symlink and install the new package content into it.

If an attacker can coerce an operator into running tofu init in a directory whose contents are attacker-controlled, they can include such a symlink along with instruction to install an attacker-controlled provider package at the path of that symlink, which would then cause OpenTofu to write the contents of that provider package into an arbitrary directory elsewhere in the filesystem if the OpenTofu process has sufficient permission to write there.

References

  • github.com/advisories/GHSA-wcmj-x466-56mm
  • github.com/opentofu/opentofu/security/advisories/GHSA-wcmj-x466-56mm

Code Behaviors & Features

Detect and mitigate GHSA-wcmj-x466-56mm with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.10.10, all versions starting from 1.11.0 before 1.11.7

Fixed versions

  • 1.10.10
  • 1.11.7

Solution

Upgrade to versions 1.10.10, 1.11.7 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-61: UNIX Symbolic Link (Symlink) Following

Source file

go/github.com/opentofu/opentofu/GHSA-wcmj-x466-56mm.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 11 Jul 2026 00:17:47 +0000.