{"answers":{"affected":"5 open source packages ship an affected version, including github.com/opentofu/opentofu.","exploited":"There is no known exploitation of GHSA-22w5-2fxg-vrwx in the wild and no public exploit code.","fix":"Upgrade github.com/opentofu/opentofu to a fixed version for your release line: 1.11.9 or 1.12.2.","what":"GHSA-22w5-2fxg-vrwx is a denial of service vulnerability in github.com/opentofu/opentofu, published on 20 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-22w5-2fxg-vrwx and fix it if it is affected.\n\nWhat it is: GHSA-22w5-2fxg-vrwx is a denial of service vulnerability in github.com/opentofu/opentofu, published on 20 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-22w5-2fxg-vrwx 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.9, 1.12.2\n- github.com/opentofu/opentofu (Go): affected all versions; fixed in 1.11.9\n- github.com/opentofu/opentofu (Go): affected all versions; fixed in 1.11.9\n- github.com/opentofu/opentofu (Go): affected from 1.12.0-beta1; fixed in 1.12.2\n- github.com/opentofu/opentofu (Go): affected from 1.12.0-beta1; fixed in 1.12.2\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-22w5-2fxg-vrwx/ (Markdown: https://insights.sbomify.com/GHSA-22w5-2fxg-vrwx/index.md)","id":"GHSA-22w5-2fxg-vrwx","markdown":"https://insights.sbomify.com/GHSA-22w5-2fxg-vrwx/index.md","name":"GHSA-22w5-2fxg-vrwx","record":{"aliases":["GO-2026-6262"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Infrastructure as Code tool","requires_auth":"none","summary":"OpenTofu suffers from high CPU usage and potential denial of service when connecting to untrusted or compromised servers due to inefficient parsing in underlying Go libraries.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nUnauthenticated denial of service.\n\n### Summary\n\nWhen OpenTofu performs requests against an untrusted (or compromised) third-party server or connects to an attacker-controlled server, the initial connection negotiation can produce high CPU usage, leading to possible denial of service.\n\nThese vulnerabilities **do not** permit arbitrary code execution or allow disclosure of confidential information.\n\n### Details\n\nOpenTofu relies on third-party implementations of TLS certificate verification and HTTP request execution from the standard library of the Go programming language.\n\nThe Go project has recently published the following advisories for those implementations which indirectly affect OpenTofu's behavior:\n\n- [CVE-2026-42504](https://www.cve.org/CVERecord?id=CVE-2026-42504): Quadratic complexity in WordDecoder.DecodeHeader in mime\n- [CVE-2026-27145](https://www.cve.org/CVERecord?id=CVE-2026-27145): Inefficient candidate hostname parsing in crypto/x509\n\nCVE-2026-42504 affects OpenTofu's K8S remote state implementation. The operator of a configuration that uses such a backend needs to double-check the trustworthiness of the server used for this purpose. \nIn situations where the server is untrusted or compromised, an attacker could configure it to respond with an intentionally crafted HTTP response designed to target this specific vulnerability in the Go standard library, potentially leading to high CPU usage.\n\nCVE-2026-27145 has a similar outcome: if an untrusted or compromised third-party server is used, an attacker could craft a specific TLS certificate that targets this vulnerability in the Go standard library, which could also lead to high CPU usage.\n\nTypical use of OpenTofu already requires caution in selection of third-party dependencies.\n\n### Patches\n\nOpenTofu v1.11.9 and v1.12.2 address these vulnerabilities by upgrading to the Go versions that fix them (v1.25.11 and v1.26.3).\n\nThe OpenTofu v1.10 series is also impacted by these vulnerabilities. However, that series is built with a version of Go for which no upstream fix is available. Adopting Go 1.25.11 for that series would effectively end support for certain versions of macOS and Linux, and the OpenTofu Project has determined that the impact of these vulnerabilities is not high enough to justify that disruption in a patch release. For those using OpenTofu v1.10 releases, we recommend planning an upgrade to OpenTofu v1.11.9 in the near future.","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":"Impact Unauthenticated denial of service.","id":"GHSA-22w5-2fxg-vrwx","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":5,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["1.11.9","1.12.2"],"introduced":["0","1.12.0-beta1"],"last_affected":[],"package":"github.com/opentofu/opentofu","purl":"pkg:golang/github.com/opentofu/opentofu","source":"GO-2026-6262"},{"ecosystem":"Go","fixed":["1.11.9"],"introduced":["0"],"last_affected":[],"package":"github.com/opentofu/opentofu","purl":null,"source":"GHSA-22w5-2fxg-vrwx"},{"ecosystem":"Go","fixed":["1.11.9"],"introduced":["0"],"last_affected":[],"package":"github.com/opentofu/opentofu","purl":"pkg:golang/github.com/opentofu/opentofu","source":"GHSA-22w5-2fxg-vrwx"},{"ecosystem":"Go","fixed":["1.12.2"],"introduced":["1.12.0-beta1"],"last_affected":[],"package":"github.com/opentofu/opentofu","purl":null,"source":"GHSA-22w5-2fxg-vrwx"},{"ecosystem":"Go","fixed":["1.12.2"],"introduced":["1.12.0-beta1"],"last_affected":[],"package":"github.com/opentofu/opentofu","purl":"pkg:golang/github.com/opentofu/opentofu","source":"GHSA-22w5-2fxg-vrwx"}],"products":null,"published":"2026-08-20","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 suffers from high CPU usage and potential denial of service when connecting to untrusted or compromised servers due to inefficient parsing in underlying Go libraries.","url":"https://insights.sbomify.com/GHSA-22w5-2fxg-vrwx/"}