{"schemaVersion":3,"id":"CVE-2023-25568","aliases":["GHSA-m974-xj4j-7qv5","GHSA-q3j6-22wf-3jh9","GO-2023-1766"],"status":"published","duplicateOf":null,"title":null,"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`.","dates":{"published":"2023-05-10T00:00:00.000Z","modified":"2025-02-13T16:44:30.783Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.2,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00856,"percentile":0.57727,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-0.007000000000000062,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00863},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00856,"percentile":0.57727}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00863,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00856,"percentile":0.57727}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling","description":"The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/770.html"}],"affected":[{"vendor":"github.com/ipfs","product":"go-bitswap","name":"github.com/ipfs/go-bitswap","label":"go-bitswap","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/ipfs/go-bitswap","purlType":"golang","versions":[{"text":"< 0.12.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.12.0","eol":null,"hubHref":null},{"vendor":"github.com/ipfs","product":"go-libipfs","name":"github.com/ipfs/go-libipfs","label":"go-libipfs","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/ipfs/go-libipfs","purlType":"golang","versions":[{"text":"< 0.4.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.5.0, < 0.6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.1 | ≥ 0.5.0, < 0.6.0","eol":null,"hubHref":null},{"vendor":"ipfs","product":"boxo","name":"boxo","label":"boxo","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"0.4.0","noFixRecorded":false,"fixedIn":null},{"text":"0.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"0.4.0 | 0.5.0","eol":null,"hubHref":"/vendor/ipfs/boxo"},{"vendor":"protocol","product":"boxo","name":"boxo","label":"boxo","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"0.4.0","noFixRecorded":false,"fixedIn":null},{"text":"0.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"0.4.0 | 0.5.0","eol":null,"hubHref":"/vendor/protocol/boxo"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/ipfs/boxo/commit/62cbac40b96f49e39cd7fedc77ee6b56adce4916","label":"github.com/ipfs/boxo/commit/62cbac40b96f49e39cd7fedc77ee6b56adce4916","hostname":"github.com","tags":["WEB","Patch"]},{"url":"https://github.com/ipfs/boxo/commit/9cb5cb54d40b57084d1221ba83b9e6bb3fcc3197","label":"github.com/ipfs/boxo/commit/9cb5cb54d40b57084d1221ba83b9e6bb3fcc3197","hostname":"github.com","tags":["WEB","Patch"]},{"url":"https://github.com/ipfs/boxo/commit/baa748b682fabb21a4c1f7628a8af348d4645974","label":"github.com/ipfs/boxo/commit/baa748b682fabb21a4c1f7628a8af348d4645974","hostname":"github.com","tags":["WEB","Patch"]},{"url":"https://github.com/ipfs/go-libipfs/security/advisories/GHSA-m974-xj4j-7qv5","label":"github.com/ipfs/go-libipfs/security/advisories/GHSA-m974-xj4j-7qv5","hostname":"github.com","tags":["WEB","Advisory","Mitigation","Patch","Vendor Advisory"]},{"url":"https://github.com/ipfs/boxo/security/advisories/GHSA-m974-xj4j-7qv5","label":"github.com/ipfs/boxo/security/advisories/GHSA-m974-xj4j-7qv5","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25568","label":"nvd.nist.gov/vuln/detail/CVE-2023-25568","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/ipfs/boxo","label":"github.com/ipfs/boxo","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/ipfs/go-bitswap/security/advisories/GHSA-q3j6-22wf-3jh9","label":"github.com/ipfs/go-bitswap/security/advisories/GHSA-q3j6-22wf-3jh9","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/ipfs/go-bitswap","label":"github.com/ipfs/go-bitswap","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-05-10T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-13T16:44:30.783Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T21:02:05.296Z","stale":false,"partial":false}}