GHSA-q7j3-v8qv-22vq: OpenTofu: Possible arbitrary file read during certain git operations via a maliciously crafted URL
Impact Possible data exposure. Summary While downloading packages from a maliciously crafted URL, some git operations against that URL could allow arbitrary file read. This might allow disclosure of confidential information. Details OpenTofu relies on go-getter for downloading packages like providers and modules.
Published Jun 19, 2026
Affected packages
github.com/opentofu/opentofu
- Ecosystem
- Go
- Affected
- < 1.11.10
- Fixed in
- 1.11.10
- Check
go list -m github.com/opentofu/opentofu
github.com/opentofu/opentofu
- Ecosystem
- Go
- Affected
- >= 1.12.0-beta1, < 1.12.3
- Fixed in
- 1.12.3
- Check
go list -m github.com/opentofu/opentofu
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Possible data exposure.
Summary
While downloading packages from a maliciously crafted URL, some git operations against that URL could allow arbitrary file read. This might allow disclosure of confidential information.
Details
OpenTofu relies on go-getter for downloading packages like providers and modules. While doing so from a maliciously crafted URL, the operator could be affected by confidential information disclosure.
The go-getter maintainers have recently published CVE-2026-4660 for this library which indirectly affects OpenTofu's behavior.
Typical use of OpenTofu already requires caution in selection of URLs that are used to download modules and providers.
Patches
OpenTofu v1.11.10 and v1.12.3 address these vulnerabilities by upgrading to the hashicorp/[email protected] that fixes this vulnerability.
The OpenTofu v1.10 series is also impacted by these vulnerabilities. However, that series is built with an older version of the library and upgrading it risks breaking the whole v1.10 series. For those using OpenTofu v1.10 releases, we recommend planning an upgrade to OpenTofu v1.11.10 in the near future.
References
References
- https://github.com/opentofu/opentofu/security/advisories/GHSA-q7j3-v8qv-22vq
- https://github.com/opentofu/opentofu/pull/4288
- https://github.com/opentofu/opentofu/pull/4292
- https://github.com/opentofu/opentofu/pull/4293
- https://github.com/advisories/GHSA-92mm-2pjq-r785
- https://github.com/hashicorp/go-getter/releases/tag/v1.8.6
- https://github.com/opentofu/opentofu/releases/tag/v1.11.10
- https://github.com/opentofu/opentofu/releases/tag/v1.12.3
- https://github.com/advisories/GHSA-q7j3-v8qv-22vq
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-22w5-2fxg-vrwx
OpenTofu has high CPU usage when using K8S remote state backend or when parsing specifically crafted TLS certificates from untrusted or compromised servers
low2.6Aug 20, 2026GHSA-wcmj-x466-56mm
OpenTofu: Provider cache installation follows root-module-controlled package directory symlink and writes outside the working tree
medium6.1Jun 23, 2026GHSA-pxh5-6rrc-8rjv
OpenTofu: Excessive resource usage in "tofu init" when installing dependencies from attacker-controlled server
low3.1May 20, 2026GHSA-hw5x-4r37-72w7
OpenTofu has unbounded memory usage, high CPU usage, or deadlock in "tofu init" with maliciously-crafted dependency responses
low3.1Apr 14, 2026GHSA-r92c-9c7f-3pj8
OpenTofu has High CPU usage in "tofu init" with maliciously-crafted module packages in .zip format
low3.1Jan 21, 2026GHSA-mjcp-gpgx-ggcg
OpenTofu incorrectly validates excluded subdomain constraint in conjunction with TLS certificates containing wildcard SANs
medium5.9Dec 9, 2025
