{"id":"CVE-2023-25568","published":"2023-05-10T00:00:00Z","modified":"2025-02-13T16:44:30Z","title":"Boxo bitswap/server: DOS unbounded persistent memory leak","vendor":"ipfs","product":"boxo","tier":"tail","description":{"text":"Boxo, formerly known as go-libipfs, is a library for building IPFS applications and implementations. In versions 0.4.0 and 0.5.0, if an attacker is able allocate arbitrary many bytes in the Bitswap server, those allocations are lasting even if the connection is closed. This affects users accepting untrusted connections with the Bitswap server and also affects users using the old API stubs at `github.com/ipfs/go-libipfs/bitswap` because users then transitively import `github.com/ipfs/go-libipfs/bitswap/server`. Boxo versions 0.6.0 and 0.4.1 contain a patch for this issue. As a workaround, those who are using the stub object at `github.com/ipfs/go-libipfs/bitswap` not taking advantage of the features provided by the server can refactor their code to use the new split API that will allow them to run in a client only mode: `github.com/ipfs/go-libipfs/bitswap/client`.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00856,"percentile":0.59258,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/ipfs/boxo/commit/62cbac40b96f49e39cd7fedc77ee6b56adce4916","tags":[]},{"url":"https://github.com/ipfs/boxo/commit/9cb5cb54d40b57084d1221ba83b9e6bb3fcc3197","tags":[]},{"url":"https://github.com/ipfs/boxo/commit/baa748b682fabb21a4c1f7628a8af348d4645974","tags":[]},{"url":"https://github.com/ipfs/go-libipfs/security/advisories/GHSA-m974-xj4j-7qv5","tags":[]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":11.85},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"ipfs","affectedVersions":[{"vendor":"ipfs","product":"boxo","versions":["0.4.0","0.5.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-01-27T21:33:49.089709Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/ipfs/go-libipfs","vulnerableRanges":[">=0.5.0, <0.6.0","<0.4.1"],"patched":["0.6.0","0.4.1"],"from":["GHSA-m974-xj4j-7qv5","GO-2023-1766"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/ipfs/go-bitswap","vulnerableRanges":["<0.12.0"],"patched":["0.12.0"],"from":["GO-2023-1766"],"provenance":"source"}],"summary":{"text":"The Boxo library (formerly go-libipfs) versions 0.4.0 and 0.5.0 contain an unbounded persistent memory leak in the Bitswap server component: attacker-driven allocations are retained even after the connection closes. An unauthenticated remote attacker with network access can trigger this without user interaction, simply by connecting to a Bitswap server that accepts untrusted connections, and applications importing the legacy go-libipfs/bitswap stub are also affected through the transitively imported server package.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:43Z"},"euvd":{"id":"EUVD-2023-1578","exploited":false,"provenance":"source"}}