GHSA-q7j3-v8qv-22vq

Suggest an improvement
Source
https://github.com/advisories/GHSA-q7j3-v8qv-22vq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-q7j3-v8qv-22vq/GHSA-q7j3-v8qv-22vq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q7j3-v8qv-22vq
Aliases
Downstream
CGA (10)
Published
2026-06-19T16:35:09Z
Modified
2026-06-25T23:11:47Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
OpenTofu: Possible arbitrary file read during certain git operations via a maliciously crafted URL
Details

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/go-getter@v1.8.6 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

Database specific
{
    "cwe_ids":  [
        "CWE-1395"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-06-19T16:35:09Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

Go / github.com/opentofu/opentofu

Package

Name
github.com/opentofu/opentofu
View open source insights on deps.dev
Purl
pkg:golang/github.com/opentofu/opentofu

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.11.10

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-q7j3-v8qv-22vq/GHSA-q7j3-v8qv-22vq.json"

Go / github.com/opentofu/opentofu

Package

Name
github.com/opentofu/opentofu
View open source insights on deps.dev
Purl
pkg:golang/github.com/opentofu/opentofu

Affected ranges

Type
SEMVER
Events
Introduced
1.12.0-beta1
Fixed
1.12.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-q7j3-v8qv-22vq/GHSA-q7j3-v8qv-22vq.json"