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

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.86%, higher than 59% of CVEs (2026-12-01)
- Published: 2023-05-10T00:00:00.000Z
- Modified: 2026-09-10T03:50:01.708Z
- Also known as: GHSA-m974-xj4j-7qv5, GHSA-q3j6-22wf-3jh9, GO-2023-1766
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/ipfs/boxo/commit/62cbac40b96f49e39cd7fedc77ee6b56adce4916> (patch, web)
- <https://github.com/ipfs/boxo/commit/9cb5cb54d40b57084d1221ba83b9e6bb3fcc3197> (patch, web)
- <https://github.com/ipfs/boxo/commit/baa748b682fabb21a4c1f7628a8af348d4645974> (patch, web)
- <https://github.com/ipfs/go-libipfs/security/advisories/GHSA-m974-xj4j-7qv5> (advisory, mitigation, patch, vendor-advisory, web)
- <https://github.com/ipfs/boxo/security/advisories/GHSA-m974-xj4j-7qv5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-25568> (advisory)
- <https://github.com/ipfs/boxo> (package)
- <https://github.com/ipfs/go-bitswap/security/advisories/GHSA-q3j6-22wf-3jh9> (web)
- <https://github.com/ipfs/go-bitswap> (package)

## Sources

- CVE List: [CVE-2023-25568](https://www.cve.org/CVERecord?id=CVE-2023-25568), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-m974-xj4j-7qv5](https://github.com/advisories/GHSA-m974-xj4j-7qv5), CC-BY-4.0, modified 2026-09-10
- GitHub Advisory Database: [GHSA-q3j6-22wf-3jh9](https://github.com/advisories/GHSA-q3j6-22wf-3jh9), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2023-1766](https://pkg.go.dev/vuln/GO-2023-1766), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2023-25568](https://nvd.nist.gov/vuln/detail/CVE-2023-25568), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-25568 · Whole record: https://cve.day/CVE-2023-25568.json · Rebuilt by cve.day 2026-11-25T22:58:24.059Z
