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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| opentofu | opentofu | < 1.11.7 | 1.11.7 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/opentofu/opentofu | >= 1.11.0, < 1.11.7 | 1.11.7 | GHSA-wcmj-x466-56mm |
| Go | github.com/opentofu/opentofu | < 1.10.10 | 1.10.10 | GHSA-wcmj-x466-56mm |
| Go | github.com/opentofu/opentofu | < 1.10.10 · >= 1.11.0, < 1.11.7 | 1.10.10, 1.11.7 | GO-2026-5705 |
Advisories 1
- WID-SEC-2026-2864 OpenTofu: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 16, 2026
References
- GitHub Security Advisory (GHSA-wcmj-x466-56mm) vendor-advisory
- VulnCheck Advisory: OpenTofu before 1.11.7 Symlink Following Path Traversal third-party-advisory