{"answers":{"affected":"5 open source packages ship an affected version, including github.com/opentofu/opentofu.","exploited":"There is no known exploitation of GHSA-q7j3-v8qv-22vq in the wild and no public exploit code.","fix":"Upgrade github.com/opentofu/opentofu to a fixed version for your release line: 1.11.10 or 1.12.3.","what":"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."},"fix_prompt":"Check this codebase for GHSA-q7j3-v8qv-22vq and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of GHSA-q7j3-v8qv-22vq in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/opentofu/opentofu (Go): affected all versions; fixed in 1.11.10, 1.12.3\n- github.com/opentofu/opentofu (Go): affected all versions; fixed in 1.11.10\n- github.com/opentofu/opentofu (Go): affected all versions; fixed in 1.11.10\n- github.com/opentofu/opentofu (Go): affected from 1.12.0-beta1; fixed in 1.12.3\n- github.com/opentofu/opentofu (Go): affected from 1.12.0-beta1; fixed in 1.12.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-q7j3-v8qv-22vq/ (Markdown: https://insights.sbomify.com/GHSA-q7j3-v8qv-22vq/index.md)","id":"GHSA-q7j3-v8qv-22vq","markdown":"https://insights.sbomify.com/GHSA-q7j3-v8qv-22vq/index.md","name":"GHSA-q7j3-v8qv-22vq","record":{"aliases":["GO-2026-5571"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Infrastructure as Code tool","requires_auth":"none","summary":"OpenTofu allows arbitrary file read via malicious git URLs, potentially exposing confidential information to attackers.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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)","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"OpenTofu: Possible arbitrary file read during certain git operations via a maliciously crafted URL","id":"GHSA-q7j3-v8qv-22vq","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":5,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["1.11.10","1.12.3"],"introduced":["0","1.12.0-beta1"],"last_affected":[],"package":"github.com/opentofu/opentofu","purl":"pkg:golang/github.com/opentofu/opentofu","source":"GO-2026-5571"},{"ecosystem":"Go","fixed":["1.11.10"],"introduced":["0"],"last_affected":[],"package":"github.com/opentofu/opentofu","purl":null,"source":"GHSA-q7j3-v8qv-22vq"},{"ecosystem":"Go","fixed":["1.11.10"],"introduced":["0"],"last_affected":[],"package":"github.com/opentofu/opentofu","purl":"pkg:golang/github.com/opentofu/opentofu","source":"GHSA-q7j3-v8qv-22vq"},{"ecosystem":"Go","fixed":["1.12.3"],"introduced":["1.12.0-beta1"],"last_affected":[],"package":"github.com/opentofu/opentofu","purl":null,"source":"GHSA-q7j3-v8qv-22vq"},{"ecosystem":"Go","fixed":["1.12.3"],"introduced":["1.12.0-beta1"],"last_affected":[],"package":"github.com/opentofu/opentofu","purl":"pkg:golang/github.com/opentofu/opentofu","source":"GHSA-q7j3-v8qv-22vq"}],"products":null,"published":"2026-06-19","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"OpenTofu allows arbitrary file read via malicious git URLs, potentially exposing confidential information to attackers.","url":"https://insights.sbomify.com/GHSA-q7j3-v8qv-22vq/"}