Vulnerabilities in pkg:golang/github.com/hashicorp/yamux
PACKAGEGHSA-29qp-crvh-w22m is a MODERATE github.com/hashicorp/yamux's defaultconfig has dangerous defaults vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Withdrawn Advisory libraries in the Go ecosystem. The issue involves github.com/hashicorp/yamux's defaultconfig has dangerous defaults causing hung read. Remediation is available in the latest vendor maintenance releases.
pkg:golang/github.com/hashicorp/yamux
Vulnerability advisories affecting package pkg:golang/github.com/hashicorp/yamux. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-29qp-crvh-w22m | - | MODERATE | Withdrawn Advisory: github.com/hashicorp/yamux's DefaultConfig has dangerous defaults causing hung Read |
GHSA-29qp-crvh-w22m at a Glance
How to Fix GHSA-29qp-crvh-w22m
To remediate this vulnerability, upgrade all affected Withdrawn Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/hashicorp/yamux to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/hashicorp/yamux
How to Check if You Are Affected
To determine whether your application is affected by GHSA-29qp-crvh-w22m, inspect your project dependencies for Withdrawn Advisory:
inspect dependencies for github.com/hashicorp/yamux
Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Withdrawn Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-29qp-crvh-w22m Affected Withdrawn Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/hashicorp/yamux
|
Go |
≥ 0.1.0
≤ 0.1.2
|
|
References
Frequently Asked Questions
What is GHSA-29qp-crvh-w22m?
Which Withdrawn Advisory versions are affected?
What version fixes GHSA-29qp-crvh-w22m?
Is github.com/hashicorp/yamux affected?
What CWE is associated with GHSA-29qp-crvh-w22m?
How can I check Go dependencies for GHSA-29qp-crvh-w22m?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-29qp-crvh-w22m",
"modified" : "2025-02-06T17:31:23Z",
"published" : "2025-01-29T19:19:11Z",
"withdrawn" : "2025-02-06T17:31:23Z",
"aliases" : [ ],
"summary" : "Withdrawn Advisory: github.com/hashicorp/yamux's DefaultConfig has dangerous defaults causing hung Read",
"details" : "## Withdrawn Advisory\nThis advisory has been withdrawn because further research determined that `github.com/hashicorp/yamux` was not vulnerable to denial of service in the manner described. This link is maintained to preserve external references.\n\n## Original Description\nThe default values for Session.config.KeepAliveInterval and Session.config.ConnectionWriteTimeout of 30s and 10s create the possibility for timed out writes that most aren't handling in their readers.\n\nCalls to Stream.Read on one side of a connection will hang until the underlying Session is closed if the corresponding Stream.Write call on the other side it's waiting for returns with ErrConnectionWriteTimeout. This happens in the case of network congestion between the two sides.\n\nIf you keep Session.sendCh full (fixed capacity of 64) for ConnectionWriteTimeout, but for less than the KeepAliveInterval + ConnectionWriteTimeout (which would kill the Session), Stream.Write will return ErrConnectionWriteTimeout. The state of the underlying Session or Stream is not modified. When this happens, the other side's Stream.Read call that's waiting for that write will never return because there's no timeout for this edge-case.\n\nSince no keep alive timed out, you can continue to use the Session once the network congestion is resolved, but that Stream.Read call will only return when the Session closes or the response shows up. Since the write call on the other side timed out the call to Stream.Read will never return.\n\nAny conditions that cause network writes to stall for 10-30 seconds can trigger this Denial of Service- extremely high CPU contention on either side of the connection, BGP reconvergence, etc. To resolve the Denial of Service issue, you have to re-establish the connections, which will usually require a hard restart of the service on either end of the connection.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/yamux"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.1.0"
}, {
"last_affected" : "0.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/golang/vulndb/issues/3408"
}, {
"type" : "WEB",
"url" : "https://github.com/golang/vulndb/issues/3453"
}, {
"type" : "WEB",
"url" : "https://github.com/hashicorp/yamux/issues/142"
}, {
"type" : "WEB",
"url" : "https://github.com/hashicorp/yamux/pull/143"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/hashicorp/yamux"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-29T19:19:11Z",
"nvd_published_at" : null
}
}