GHSA-r92c-9c7f-3pj8: OpenTofu has High CPU usage in "tofu init" with maliciously-crafted module packages in .zip format
Impact Unauthenticated denial of service. Summary When installing module packages from attacker-controlled sources, tofu init may cause high CPU usage when encountering maliciously-crafted .zip archives for either provider or module distribution packages.
Published Jan 21, 2026 · Updated Feb 3, 2026
Affected packages
github.com/opentofu/opentofu
- Ecosystem
- Go
- Affected
- < 1.11.4
- Fixed in
- 1.11.4
- Check
go list -m github.com/opentofu/opentofu
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Unauthenticated denial of service.
Summary
When installing module packages from attacker-controlled sources, tofu init may cause high CPU usage when encountering maliciously-crafted .zip archives for either provider or module distribution packages.
Those who depend on modules or providers served from untrusted third-party servers may experience denial of service due to tofu init failing to complete in a timely manner. Other processes running on the same computer as OpenTofu may also have their performance degraded due to the high CPU usage.
These vulnerabilities do not permit arbitrary code execution or allow disclosure of confidential information.
Details
OpenTofu relies on a third-party implementation of .zip archive extraction from the standard library of the Go programming language. The Go project has recently published a minor release (Go 1.25.6) to address a problem of potential excessive CPU usage when accessing files in a maliciously-crafted .zip archive.
OpenTofu's threat model considers module and package dependencies to be arbitrary third-party code that operators must carefully review after installation. However, this particular problem affects the process of installing these dependencies with tofu init, and so can potentially occur before an operator has had the opportunity to review what is being installed.
An attacker can exploit this by controlling the content of a package served when OpenTofu is expecting to receive a archive using the .zip format, during either provider or module package installation.
However, the attacker must also coerce an OpenTofu operator into attempting dependency installation from a source that they control. Typical use of OpenTofu already requires caution in selection of third-party dependencies because they are arbitrary code, and so the vulnerability here is only in the addition of a potential denial of service in the tofu init process, which does not execute third-party dependency code itself.
Patches
OpenTofu v1.11.4 addresses these vulnerabilities by being built against Go 1.25.6, which contains an improved version of the upstream implementation.
Workarounds
These vulnerabilities can be exploited only if an attacker can coerce an operator to add a dependency from an attacker-controlled source to their configuration before running tofu init. Those who are unable to immediately upgrade can therefore minimize risk by reviewing new dependencies before adding them to the configuration, such as by directly fetching the relevant artifacts using software other than OpenTofu.
Successful exploitation requires that the attacker control a .zip archive that OpenTofu would fetch and extract during the provider or module installation processes. Note that OpenTofu modules can have their own dependencies on other providers and modules, so an attacker could potentially use a module served from a source such as GitHub or the OpenTofu Registry to indirectly request a provider or module package from a server that they control.
References
References
- https://github.com/opentofu/opentofu/security/advisories/GHSA-r92c-9c7f-3pj8
- https://github.com/golang/go/issues/77102
- https://github.com/opentofu/opentofu/pull/3689
- https://github.com/opentofu/opentofu/commit/f5d5cdf16615ea3c298e058b062951adb02805f3
- https://github.com/opentofu/opentofu/releases/tag/v1.11.4
- https://github.com/advisories/GHSA-r92c-9c7f-3pj8
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-22w5-2fxg-vrwx
OpenTofu has high CPU usage when using K8S remote state backend or when parsing specifically crafted TLS certificates from untrusted or compromised servers
low2.6Aug 20, 2026GHSA-wcmj-x466-56mm
OpenTofu: Provider cache installation follows root-module-controlled package directory symlink and writes outside the working tree
medium6.1Jun 23, 2026GHSA-q7j3-v8qv-22vq
OpenTofu: Possible arbitrary file read during certain git operations via a maliciously crafted URL
high7.5Jun 19, 2026GHSA-pxh5-6rrc-8rjv
OpenTofu: Excessive resource usage in "tofu init" when installing dependencies from attacker-controlled server
low3.1May 20, 2026GHSA-hw5x-4r37-72w7
OpenTofu has unbounded memory usage, high CPU usage, or deadlock in "tofu init" with maliciously-crafted dependency responses
low3.1Apr 14, 2026GHSA-mjcp-gpgx-ggcg
OpenTofu incorrectly validates excluded subdomain constraint in conjunction with TLS certificates containing wildcard SANs
medium5.9Dec 9, 2025
