Vulnerabilities in pkg:golang/github.com/ipfs/kubo
PACKAGEGHSA-qvqg-6rp8-4p9h is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/ipfs/kubo libraries in the Go ecosystem. The issue involves github.com/ipfs/kubo affected by dos bitswap unbounded persistent memory leak. Remediation is available by upgrading affected packages to version 0.19.0.
pkg:golang/github.com/ipfs/kubo
Vulnerability advisories affecting package pkg:golang/github.com/ipfs/kubo. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-qvqg-6rp8-4p9h | - | MODERATE | github.com/ipfs/kubo affected by DOS Bitswap unbounded persistent memory leak |
GHSA-qvqg-6rp8-4p9h at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix GHSA-qvqg-6rp8-4p9h
To remediate this vulnerability, upgrade all affected Github.com/ipfs/kubo 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/ipfs/kubo to 0.19.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/ipfs/kubo
How to Check if You Are Affected
To determine whether your application is affected by GHSA-qvqg-6rp8-4p9h, inspect your project dependencies for Github.com/ipfs/kubo:
inspect dependencies for github.com/ipfs/kubo
Analyze the terminal output to locate any version of Github.com/ipfs/kubo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.19.0), 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Github.com/ipfs/kubo, 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-qvqg-6rp8-4p9h Affected Github.com/ipfs/kubo Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/ipfs/kubo
|
Go |
< 0.19.0
|
0.19.0
|
References
Frequently Asked Questions
What is GHSA-qvqg-6rp8-4p9h?
Which Github.com/ipfs/kubo versions are affected?
What version fixes GHSA-qvqg-6rp8-4p9h?
Is github.com/ipfs/kubo affected?
What is the CVSS score of GHSA-qvqg-6rp8-4p9h?
What CWE is associated with GHSA-qvqg-6rp8-4p9h?
How can I check Go dependencies for GHSA-qvqg-6rp8-4p9h?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qvqg-6rp8-4p9h",
"modified" : "2023-05-11T20:40:16Z",
"published" : "2023-05-11T20:40:16Z",
"aliases" : [ ],
"summary" : "github.com/ipfs/kubo affected by DOS Bitswap unbounded persistent memory leak",
"details" : "### Impact\nAn attacker is able allocate arbitrarily many bytes in the Bitswap server by sending many `WANT_BLOCK` and or `WANT_HAVE` requests which are queued in an unbounded queue, with allocations that persist even if the connection is closed.\n\nThis affects users accepting or connecting untrusted connections such as by running in the public swarm and no pnet config.\nNodes that are not publicly reachable but connects to untrusted nodes are also vulnerable to the untrusted nodes being connected to since libp2p connections are blindly bidirectional.\n\n### Patches\n- 19feb15833c6f4d6e7f1e1b132efaae96d76481d [`boxo`](https://github.com/ipfs/boxo) update in Kubo\n- GHSA-m974-xj4j-7qv5 patches in boxo\n\n### Workarounds\n\nUse [PNET](https://github.com/ipfs/kubo/blob/master/docs/experimental-features.md#private-networks), [swarm filters](https://github.com/ipfs/kubo/blob/master/docs/config.md#swarmaddrfilters) or [resource manager allows list](https://pkg.go.dev/github.com/libp2p/go-libp2p/p2p/host/resource-manager#readme-allowlisting-multiaddrs-to-mitigate-eclipse-attacks) to block untrusted connections.\n\nNote that using the resource manager will disrupt both client and server features because the bitswap protocol is a message based protocol mixing requests and responses.\n\n### References\n- GHSA-m974-xj4j-7qv5\n- [CVE-2023-25568](https://nvd.nist.gov/vuln/detail/CVE-2023-25568)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/ipfs/kubo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.19.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ipfs/boxo/security/advisories/GHSA-m974-xj4j-7qv5"
}, {
"type" : "WEB",
"url" : "https://github.com/ipfs/kubo/security/advisories/GHSA-qvqg-6rp8-4p9h"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-25568"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ipfs/kubo"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400", "CWE-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-05-11T20:40:16Z",
"nvd_published_at" : null
}
}