Description
OpenTofu before 1.11.7 fails to validate existing symlinks in the provider cache directory during initialization. Attackers can place a malicious symlink in a trusted working directory to cause tofu init to write provider package contents to arbitrary filesystem locations outside the working tree.
Published: 2026-08-16
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

OpenTofu fails to validate existing symlinks in the provider cache directory during initialization. Attackers can place a malicious symlink in a trusted working directory, causing tofu init to write provider package contents to arbitrary filesystem locations outside the working tree. This flaw enables an attacker to perform an arbitrary file‑write attack.

Affected Systems

Versions of OpenTofu before .11.7 are affected. The issue exists in all installations that employ the default provider cache directory during initialization, regardless of operating system.

Risk and Exploitability

The CVSS score of 7 indicates high severity. No EPSS information is available, and the vulnerability is not listed in the CISA KEV catalog, so there is no evidence of active exploitation yet. Attackers can execute tofu init with a prepared working directory containing a malicious symlink, achieving a local file‑write attack that can affect system integrity and availability. The exploit requires the ability to place a symlink, after which the process writes files to arbitrary paths.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to OpenTofu version 1.11.7 or later where the provider cache symlink validation bug is fixed.
  • If an upgrade is not immediately possible, remove any symlinks from the provider cache directory of the working tree before running tofu init to prevent unintended writes.
  • Configure or restrict the provider cache directory to a dedicated, non‑writable location, ensuring that init operates only in trusted paths.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 17 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 17 Aug 2026 11:30:00 +0000

Type Values Removed Values Added
First Time appeared Opentofu
Opentofu opentofu
Vendors & Products Opentofu
Opentofu opentofu

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

Type Values Removed Values Added
Description OpenTofu before 1.11.7 fails to validate existing symlinks in the provider cache directory during initialization. Attackers can place a malicious symlink in a trusted working directory to cause tofu init to write provider package contents to arbitrary filesystem locations outside the working tree.
Title OpenTofu before 1.11.7 Symlink Following Path Traversal
Weaknesses CWE-59
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 7, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N'}


Subscriptions

Opentofu Opentofu
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-17T15:30:59.808Z

Reserved: 2026-08-16T12:59:42.222Z

Link: CVE-2026-74796

cve-icon Vulnrichment

Updated: 2026-08-17T15:30:55.588Z

cve-icon NVD

Status : Received

Published: 2026-08-16T14:16:57.727

Modified: 2026-08-17T16:17:48.943

Link: CVE-2026-74796

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-16T13:14:18Z

Links: CVE-2026-74796 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T10:58:27Z

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')