lowCVSS 3.1Vulnerability

GHSA-hw5x-4r37-72w7

### Impact Unauthenticated denial of service. ### Summary When installing module packages from attacker-controlled sources, `tofu init` may use unbounded memory, cause high CPU usage, or deadlock when encountering maliciously-crafted TLS certificate chains or tar archives. 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 successfully. In the case of unbounded memory usage or high CPU usage, other processes running on the same computer as OpenTofu may also fail or have their performance degraded due to the depletion of shared system resources. These vulnerabilities **do not** permit arbitrary code execution or allow disclosure of confidential information. ### Details OpenTofu relies on third-party implementations of TLS certificate verification and tar archive extraction from the standard library of the Go programming language. The Go project has recently published the following advisories for those implementations which indirectly affect OpenTofu's behavior: - [CVE-2026-32280](https://www.cve.org/CVERecord?id=CVE-2026-32280): Unexpected work during chain building in crypto/x509 - [CVE-2026-32281](https://www.cve.org/CVERecord?id=CVE-2026-32281): Inefficient policy validation in crypto/x509 - [CVE-2026-32283](https://www.cve.org/CVERecord?id=CVE-2026-32283): Unauthenticated TLS 1.3 KeyUpdate record can cause persistent connection retention and DoS in crypto/tls - [CVE-2026-32288](https://www.cve.org/CVERecord?id=CVE-2026-32288): Unbounded allocation for old GNU sparse in archive/tar OpenTofu's threat model considers module and package dependencies to be arbitrary third-party code that operators must carefully review after installation. However, these particular problems affect 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. In part

Properties

ghsa_id
GHSA-hw5x-4r37-72w7
summary
OpenTofu has unbounded memory usage, high CPU usage, or deadlock in "tofu init" with maliciously-crafted dependency responses
severity
low
cvss_score
3.1
cve_id
GHSA-hw5x-4r37-72w7
cvss_vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L
is_ghsa_only
true
ghsa_published
2026-04-14T23:34:08Z
source_url
https://github.com/advisories/GHSA-hw5x-4r37-72w7
ghsa_updated
2026-04-14T23:34:11Z

Related Entities (4)

AFFECTS (1)

[Software]go/github.com/opentofu/opentofu

HAS_WEAKNESS (1)

[Weakness]Dependency on Vulnerable Third-Party Component

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (1)

[Software]go/github.com/opentofu/opentofu

Explore deeper with Ninja Signal's threat intelligence graph

GHSA-hw5x-4r37-72w7 (CVSS 3.1) — Ninja Signal Threat Intelligence | Ninja Signal