# OpenTofu: Excessive resource usage in "tofu init" when installing dependencies from attacker-controlled server

Advisory record · `GHSA-pxh5-6rrc-8rjv`

- **Identifiers:** `GHSA-pxh5-6rrc-8rjv` · `GO-2026-5558`
- **State:** Confirmed
- **Severity:** CVSS 3.1 Low
- **Critical:** No
- **Weakness (CWE):** [CWE-835](https://cwe.mitre.org/data/definitions/835.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 20 May 2026
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 20 May 2026, 15:35 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `github.com/opentofu/opentofu` (Go): affected `<1.11.8`; fixed in `1.11.8`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> OpenTofu versions before 1.11.8 are vulnerable to excessive resource usage during "tofu init" when it installs providers or modules from an attacker-controlled HTTP/2 server. An attacker who controls such a server and can get an operator to add a dependency from it can cause tofu init to loop indefinitely, causing denial of service. Upgrade to OpenTofu 1.11.8 or later; for earlier versions, review new dependencies before adding them and fetch artifacts outside OpenTofu where possible.

Written 1 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 3.1 Low, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** No score.

## Timeline

- 31 Oct 2026, 14:14 UTC: First seen by agentprime
- 31 Oct 2026, 14:14 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-pxh5-6rrc-8rjv)

## Sources

- [GitHub Advisory Database: GHSA-pxh5-6rrc-8rjv](https://github.com/advisories/GHSA-pxh5-6rrc-8rjv)
- [OSV: GHSA-pxh5-6rrc-8rjv](https://osv.dev/vulnerability/GHSA-pxh5-6rrc-8rjv)
- <https://github.com/opentofu/opentofu/security/advisories/GHSA-pxh5-6rrc-8rjv>
- <https://github.com/opentofu/opentofu/issues/4094>
- <https://github.com/opentofu/opentofu/pull/4098>
- <https://github.com/opentofu/opentofu>
- <https://github.com/opentofu/opentofu/releases/tag/v1.11.8>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-pxh5-6rrc-8rjv>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-pxh5-6rrc-8rjv/>. Everything for agents: <https://agentprime.io/llms.txt>.
