{"id":"GHSA-q3j6-22wf-3jh9","revision":"b25e2d2a3f2c47589dff6d2c7d71b9f0","records":[{"revision":"b25e2d2a3f2c47589dff6d2c7d71b9f0","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-q3j6-22wf-3jh9","aliases":["CVE-2023-25568","GHSA-m974-xj4j-7qv5","GO-2023-1766"],"title":"github.com/ipfs/go-bitswap vulnerable to DOS unbounded persistent memory leak","description":"This package has been moved to [`github.com/ipfs/boxo/bitswap`](https://pkg.go.dev/github.com/ipfs/boxo/bitswap), this vulnerability is tracked there: https://github.com/ipfs/boxo/security/advisories/GHSA-m974-xj4j-7qv5 (`CVE-2023-25568`)\n\n### Remediation\nThis is a two step process:\n1. Apply one of:\n   - (**recommended**) upgrade from `github.com/ipfs/go-bitswap` to `github.com/ipfs/boxo/bitswap`.\n   - If you are still using `github.com/ipfs/go-bitswap` and cannot upgrade to `boxo`, you can upgrade to `github.com/ipfs/go-bitswap@v0.12.0`, this will replace the `go-bitswap` implementation by stubs which points to `boxo`.\n2. Open https://github.com/ipfs/boxo/security/advisories/GHSA-m974-xj4j-7qv5 and then follow `boxo`'s remediation section.\n\n### Vulnerable symbols\n- `>= v0.9.0; < v0.12.0`\n  - `github.com/ipfs/go-bitswap/server/internal/decision.(*Engine).MessageReceived`\n  - `github.com/ipfs/go-bitswap/server/internal/decision.(*Engine).NotifyNewBlocks`\n  - `github.com/ipfs/go-bitswap/server/internal/decision.(*Engine).findOrCreate`\n  - `github.com/ipfs/go-bitswap/server/internal/decision.(*Engine).PeerConnected`\n- `v0.8.0`\n  - `github.com/ipfs/go-bitswap/internal/decision.(*Engine).MessageReceived`\n  - `github.com/ipfs/go-bitswap/internal/decision.(*Engine).NotifyNewBlocks`\n  - `github.com/ipfs/go-bitswap/internal/decision.(*Engine).findOrCreate`\n  - `github.com/ipfs/go-bitswap/internal/decision.(*Engine).PeerConnected`\n- `< v0.8.0`\n  - `github.com/ipfs/go-bitswap/internal/decision.(*Engine).MessageReceived`\n  - `github.com/ipfs/go-bitswap/internal/decision.(*Engine).receiveBlocksFrom`\n  - `github.com/ipfs/go-bitswap/internal/decision.(*Engine).findOrCreate`\n  - `github.com/ipfs/go-bitswap/internal/decision.(*Engine).PeerConnected`\n\n### Workarounds\nIf you are using the stubs at `github.com/ipfs/go-bitswap` and not taking advantage of the features provided by the server, refactoring your code to use the new split API will allows you to run in a client-only mode using: [`github.com/ipfs/go-bitswap/client`](https://pkg.go.dev/github.com/ipfs/go-bitswap/client).","state":0,"publishedAt":"2023-05-11T20:39:55+00:00","modifiedAt":"2023-11-08T04:11:52.109563+00:00","affected":[{"ecosystem":"Go","name":"github.com/ipfs/go-bitswap","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.12.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/ipfs/boxo/security/advisories/GHSA-m974-xj4j-7qv5","https://github.com/ipfs/go-bitswap/security/advisories/GHSA-q3j6-22wf-3jh9","https://github.com/ipfs/go-libipfs/security/advisories/GHSA-m974-xj4j-7qv5","https://nvd.nist.gov/vuln/detail/CVE-2023-25568","https://github.com/ipfs/boxo/commit/62cbac40b96f49e39cd7fedc77ee6b56adce4916","https://github.com/ipfs/boxo/commit/9cb5cb54d40b57084d1221ba83b9e6bb3fcc3197","https://github.com/ipfs/go-bitswap"],"sourceUrl":"https://github.com/advisories/GHSA-q3j6-22wf-3jh9","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-q3j6-22wf-3jh9","identifiers":["GHSA-q3j6-22wf-3jh9","CVE-2023-25568","GHSA-m974-xj4j-7qv5","GO-2023-1766"]},"retained":false,"historicalAffected":[]}],"coverage":[]}