CVE-2023-25568Protocol Boxo
High 7.5 No auth needed
Follow: this CVE · Protocol · Protocol Boxo We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 62
- Auth required
- No
- Published
- May 10, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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
- Apply the vendor's security update for Boxo.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/ipfs/go-bitswap |
< 0.12.0 |
0.12.0 |
go get github.com/ipfs/go-bitswap@v0.12.0 |
| Go | github.com/ipfs/go-bitswap |
< 0.12.0 |
0.12.0 |
go get github.com/ipfs/go-bitswap@v0.12.0 |
| Go | github.com/ipfs/go-libipfs |
≥ 0.5.0 < 0.6.0 |
0.6.0 |
go get github.com/ipfs/go-libipfs@v0.6.0 |
| Go | github.com/ipfs/go-libipfs |
< 0.4.1 |
0.4.1 |
go get github.com/ipfs/go-libipfs@v0.4.1 |
| Go | github.com/ipfs/go-libipfs |
< 0.4.1 |
0.4.1 |
go get github.com/ipfs/go-libipfs@v0.4.1 |
| Go | github.com/ipfs/go-libipfs |
≥ 0.5.0 < 0.6.0 |
0.6.0 |
go get github.com/ipfs/go-libipfs@v0.6.0 |
Per OSV / GitHub Advisories (GHSA-q3j6-22wf-3jh9, GO-2023-1766, GHSA-m974-xj4j-7qv5). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| protocol | boxo | 0.4.0 |
| protocol | boxo | 0.5.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Mitigation Patch Vendor Advisory