{"answers":{"affected":"8 open source packages ship an affected version, including github.com/ipfs/go-libipfs and github.com/ipfs/go-bitswap. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-25568 in the wild and no public exploit code.","fix":"Upgrade github.com/ipfs/go-libipfs to a fixed version for your release line: 0.4.1 or 0.6.0.","what":"CVE-2023-25568 is a high-severity denial of service vulnerability in ipfs boxo, published on 10 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-25568 and fix it if it is affected.\n\nWhat it is: CVE-2023-25568 is a high-severity denial of service vulnerability in ipfs boxo, published on 10 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-25568 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/ipfs/go-libipfs (Go): affected all versions; fixed in 0.4.1, 0.6.0\n- github.com/ipfs/go-libipfs (Go): affected all versions; fixed in 0.4.1\n- github.com/ipfs/go-libipfs (Go): affected all versions; fixed in 0.4.1\n- github.com/ipfs/go-libipfs (Go): affected from 0.5.0; fixed in 0.6.0\n- github.com/ipfs/go-libipfs (Go): affected from 0.5.0; fixed in 0.6.0\n- github.com/ipfs/go-bitswap (Go): affected all versions; fixed in 0.12.0\n- github.com/ipfs/go-bitswap (Go): affected all versions; fixed in 0.12.0\n- github.com/ipfs/go-bitswap (Go): affected all versions; fixed in 0.12.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-25568/ (Markdown: https://insights.sbomify.com/CVE-2023-25568/index.md)","id":"CVE-2023-25568","markdown":"https://insights.sbomify.com/CVE-2023-25568/index.md","name":"CVE-2023-25568","record":{"aliases":["GHSA-m974-xj4j-7qv5","GHSA-q3j6-22wf-3jh9","GO-2023-1766"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"IPFS Go library","requires_auth":"none","summary":"An attacker can cause a persistent memory leak in the Boxo Bitswap server, leading to denial of service for applications accepting untrusted connections.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"boxo","vendor":"protocol"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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`.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Boxo bitswap/server: DOS unbounded persistent memory leak","id":"CVE-2023-25568","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":8,"n_references":4,"next":{"headline":"apollo-portal has potential CSRF issue","id":"CVE-2023-25569"},"packages":[{"ecosystem":"Go","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"github.com/ipfs/go-bitswap","purl":null,"source":"GHSA-q3j6-22wf-3jh9"},{"ecosystem":"Go","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"github.com/ipfs/go-bitswap","purl":"pkg:golang/github.com/ipfs/go-bitswap","source":"GHSA-q3j6-22wf-3jh9"},{"ecosystem":"Go","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"github.com/ipfs/go-bitswap","purl":"pkg:golang/github.com/ipfs/go-bitswap","source":"GO-2023-1766"},{"ecosystem":"Go","fixed":["0.4.1","0.6.0"],"introduced":["0","0.5.0"],"last_affected":[],"package":"github.com/ipfs/go-libipfs","purl":"pkg:golang/github.com/ipfs/go-libipfs","source":"GO-2023-1766"},{"ecosystem":"Go","fixed":["0.4.1"],"introduced":["0"],"last_affected":[],"package":"github.com/ipfs/go-libipfs","purl":null,"source":"GHSA-m974-xj4j-7qv5"},{"ecosystem":"Go","fixed":["0.4.1"],"introduced":["0"],"last_affected":[],"package":"github.com/ipfs/go-libipfs","purl":"pkg:golang/github.com/ipfs/go-libipfs","source":"GHSA-m974-xj4j-7qv5"},{"ecosystem":"Go","fixed":["0.6.0"],"introduced":["0.5.0"],"last_affected":[],"package":"github.com/ipfs/go-libipfs","purl":null,"source":"GHSA-m974-xj4j-7qv5"},{"ecosystem":"Go","fixed":["0.6.0"],"introduced":["0.5.0"],"last_affected":[],"package":"github.com/ipfs/go-libipfs","purl":"pkg:golang/github.com/ipfs/go-libipfs","source":"GHSA-m974-xj4j-7qv5"}],"prev":{"headline":"GSS-NTLMSSP vulnerable to out-of-bounds read when decoding target information","id":"CVE-2023-25567"},"products":["boxo"],"published":"2023-05-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["ipfs"]},"summary":"An attacker can cause a persistent memory leak in the Boxo Bitswap server, leading to denial of service for applications accepting untrusted connections.","url":"https://insights.sbomify.com/CVE-2023-25568/"}