GHSA-q7j3-v8qv-22vq OpenTofu: Possible arbitrary file read during certain git operations via a maliciously crafted URL
OpenTofu allows arbitrary file read via malicious git URLs, potentially exposing confidential information to attackers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-q7j3-v8qv-22vq?
GHSA-q7j3-v8qv-22vq is a path traversal vulnerability in github.com/opentofu/opentofu, published on 19 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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
Which versions are affected by GHSA-q7j3-v8qv-22vq?
5 open source packages ship an affected version, including github.com/opentofu/opentofu.
| Package | Affected | Fixed in |
|---|---|---|
github.com/opentofu/opentofu Go | All versions | 1.11.10, 1.12.3 |
github.com/opentofu/opentofu Go | All versions | 1.11.10 |
github.com/opentofu/opentofu Go | All versions | 1.11.10 |
github.com/opentofu/opentofu Go | From 1.12.0-beta1 | 1.12.3 |
github.com/opentofu/opentofu Go | From 1.12.0-beta1 | 1.12.3 |
How do I fix GHSA-q7j3-v8qv-22vq?
Upgrade github.com/opentofu/opentofu to a fixed version for your release line: 1.11.10 or 1.12.3.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is GHSA-q7j3-v8qv-22vq being exploited?
There is no known exploitation of GHSA-q7j3-v8qv-22vq in the wild and no public exploit code.
Sources
Also known as GO-2026-5571.