GHSA-q7j3-v8qv-22vq: OpenTofu Possible Arbitrary File Read During Vulnerability
HIGHGHSA-q7j3-v8qv-22vq is a HIGH (CVSS 7.5) possible arbitrary file read during vulnerability (CWE-1395: Dependency on Vulnerable Third-Party Component) affecting OpenTofu libraries in the Go ecosystem. The issue involves possible arbitrary file read during certain git operations via a maliciously crafted url. Remediation is available by upgrading affected packages to version 1.11.10, 1.12.3.
GHSA-q7j3-v8qv-22vq at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix GHSA-q7j3-v8qv-22vq
To remediate this vulnerability, upgrade all affected OpenTofu dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/opentofu/opentofu to 1.11.10
Upgrade github.com/opentofu/opentofu to 1.12.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/opentofu/opentofu
How to Check if You Are Affected
To determine whether your application is affected by GHSA-q7j3-v8qv-22vq, inspect your project dependencies for OpenTofu:
inspect dependencies for github.com/opentofu/opentofu
Analyze the terminal output to locate any version of OpenTofu in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.11.10), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1395: Dependency on Vulnerable Third-Party Component, where the product has a dependency on a third-party component that contains one or more known vulnerabilities. In OpenTofu, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-q7j3-v8qv-22vq Affected OpenTofu Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/opentofu/opentofu
|
Go |
< 1.11.10
|
1.11.10
|
|
github.com/opentofu/opentofu
|
Go |
≥ 1.12.0-beta1
< 1.12.3
|
1.12.3
|
References
Frequently Asked Questions
What is GHSA-q7j3-v8qv-22vq?
Which OpenTofu versions are affected?
What version fixes GHSA-q7j3-v8qv-22vq?
Is github.com/opentofu/opentofu affected?
What is the CVSS score of GHSA-q7j3-v8qv-22vq?
What CWE is associated with GHSA-q7j3-v8qv-22vq?
How can I check Go dependencies for GHSA-q7j3-v8qv-22vq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q7j3-v8qv-22vq",
"modified" : "2026-06-19T16:35:10Z",
"published" : "2026-06-19T16:35:09Z",
"aliases" : [ ],
"summary" : "OpenTofu: Possible arbitrary file read during certain git operations via a maliciously crafted URL",
"details" : "### Impact\nPossible data exposure.\n#### Summary\nWhile downloading packages from a maliciously crafted URL, some git operations against that URL could allow arbitrary file read.\nThis might allow disclosure of confidential information.\n\n#### Details\nOpenTofu relies on [go-getter](https://github.com/hashicorp/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. \n\nThe go-getter maintainers have recently published [CVE-2026-4660](https://github.com/advisories/GHSA-92mm-2pjq-r785) for this library which indirectly affects OpenTofu's behavior.\n\nTypical use of OpenTofu already requires caution in selection of URLs that are used to download modules and providers.\n\n### Patches\nOpenTofu v1.11.10 and v1.12.3 address these vulnerabilities by upgrading to the [hashicorp/go-getter@v1.8.6](https://github.com/hashicorp/go-getter/releases/tag/v1.8.6) that fixes this vulnerability.\n\nThe 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. \nFor those using OpenTofu v1.10 releases, we recommend planning an upgrade to OpenTofu v1.11.10 in the near future.\n\n### References\n* [Initial report](https://github.com/opentofu/opentofu/pull/4288)\n* [CVE-2026-4660](https://github.com/advisories/GHSA-92mm-2pjq-r785)\n* [OpenTofu v1.12 patch](https://github.com/opentofu/opentofu/pull/4293)\n* [OpenTofu v1.11 patch](https://github.com/opentofu/opentofu/pull/4292)\n* [Patched v1.12.3 version](https://github.com/opentofu/opentofu/releases/tag/v1.12.3)\n* [Patched v1.11.10 version](https://github.com/opentofu/opentofu/releases/tag/v1.11.10)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/opentofu/opentofu"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.11.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/opentofu/opentofu"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.12.0-beta1"
}, {
"fixed" : "1.12.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/opentofu/opentofu/security/advisories/GHSA-q7j3-v8qv-22vq"
}, {
"type" : "WEB",
"url" : "https://github.com/opentofu/opentofu/pull/4288"
}, {
"type" : "WEB",
"url" : "https://github.com/opentofu/opentofu/pull/4292"
}, {
"type" : "WEB",
"url" : "https://github.com/opentofu/opentofu/pull/4293"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-92mm-2pjq-r785"
}, {
"type" : "WEB",
"url" : "https://github.com/hashicorp/go-getter/releases/tag/v1.8.6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/opentofu/opentofu"
}, {
"type" : "WEB",
"url" : "https://github.com/opentofu/opentofu/releases/tag/v1.11.10"
}, {
"type" : "WEB",
"url" : "https://github.com/opentofu/opentofu/releases/tag/v1.12.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1395" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-19T16:35:09Z",
"nvd_published_at" : null
}
}