CVE-2026-74796
Received Received - Intake

OpenTofu Symlink Attack Leading to Arbitrary File Write

Vulnerability report for CVE-2026-74796, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-16

Last updated on: 2026-08-16

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-16
Last Modified
2026-08-16
Generated
2026-08-16
AI Q&A
2026-08-16
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
opentofu opentofu to 1.11.7 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-59 The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-74796 is a vulnerability in OpenTofu versions before 1.11.7 where attackers can exploit symlink manipulation during initialization. If a malicious symlink exists in the provider cache directory, running 'tofu init' may cause OpenTofu to write provider files to arbitrary filesystem locations outside the working directory, potentially leading to unauthorized file writes.

Detection Guidance

Check for suspicious symlinks in the .terraform/providers directory using commands like 'find .terraform/providers -type l -ls' or 'ls -la .terraform/providers'. Verify provider cache integrity with 'tofu init -reconfigure' to detect mismatches.

Impact Analysis

This vulnerability could allow attackers to overwrite critical system files or place malicious files in sensitive directories if OpenTofu has sufficient permissions. Users running vulnerable versions may unknowingly execute commands or scripts from attacker-controlled locations, leading to system compromise or data theft.

Compliance Impact

This vulnerability could lead to unauthorized file access or modification, potentially violating data integrity and confidentiality requirements under GDPR and HIPAA. Organizations may face compliance violations if sensitive data is exposed or altered due to the exploitation of this issue.

Mitigation Strategies

Upgrade OpenTofu to version 1.11.7 or later. Remove existing .terraform directories before running 'tofu init' in new directories. Avoid running 'tofu init' in untrusted directories.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-74796. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart