Advisory

GHSA-q7j3-v8qv-22vq

Also known as: GO-2026-5571

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/[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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-06-19 16:35 UTC
Modified
2026-06-25 23:11 UTC

Affected packages and fixes

github.com/opentofu/opentofu

Go · All systems

Affected

  • introduced 0, fixed 1.11.10 (semver)

Fixed versions

1.11.10

Fix

github.com/opentofu/opentofu

Go · All systems

Affected

  • introduced 1.12.0-beta1, fixed 1.12.3 (semver)

Fixed versions

1.12.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences