GHSA-q3j6-22wf-3jh9: github.com/ipfs/go-bitswap vulnerable to DOS unbounded persistent memory leak
7.5
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
5/11/2023
Updated
6/16/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/ipfs/go-bitswap | go | < 0.12.0 | 0.12.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from uncontrolled resource consumption in message handling. The listed functions directly process untrusted inputs (WANT_* requests) and manage peer state without: (1) limiting queued entries per peer (CWE-770), (2) validating CID sizes, or (3) cleaning up disconnected peers' state (CWE-400). Commit 62cbac4 and 9cb5cb5 explicitly modified these functions to add MaxQueuedWantlistEntriesPerPeer, MaxCidSize, and peer-state cleanup - confirming their role in the vulnerability.