{"answers":{"affected":"7 open source packages ship an affected version, including github.com/libp2p/go-libp2p. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-39533 exists.","fix":"Upgrade github.com/libp2p/go-libp2p to a fixed version for your release line: 0.27.8, 0.28.2 or 0.29.1.","what":"CVE-2023-39533 is a high-severity denial of service vulnerability in go-libp2p, published on 8 Aug 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-39533 and fix it if it is affected.\n\nWhat it is: CVE-2023-39533 is a high-severity denial of service vulnerability in go-libp2p, published on 8 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-39533 exists.\n\nAffected packages and fixed versions:\n- github.com/libp2p/go-libp2p (Go): affected all versions; fixed in 0.27.8, 0.28.2, 0.29.1\n- github.com/libp2p/go-libp2p (Go): affected all versions; fixed in 0.27.8\n- github.com/libp2p/go-libp2p (Go): affected all versions; fixed in 0.27.8\n- github.com/libp2p/go-libp2p (Go): affected from 0.28.0; fixed in 0.28.2\n- github.com/libp2p/go-libp2p (Go): affected from 0.28.0; fixed in 0.28.2\n- github.com/libp2p/go-libp2p (Go): affected from 0.29.0; fixed in 0.29.1\n- github.com/libp2p/go-libp2p (Go): affected from 0.29.0; fixed in 0.29.1\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-39533/ (Markdown: https://insights.sbomify.com/CVE-2023-39533/index.md)","id":"CVE-2023-39533","markdown":"https://insights.sbomify.com/CVE-2023-39533/index.md","name":"CVE-2023-39533","record":{"aliases":["AZL-27872","AZL-27875","AZL-37359","AZL-37422","AZL-52773","AZL-79074","AZL-98640","GHSA-876p-8259-xjgg","GO-2023-2000"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go libp2p library","requires_auth":"none","summary":"A malicious peer can cause resource exhaustion and denial of service in go-libp2p nodes by using large RSA keys during handshake verification.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"go-libp2p","vendor":"libp2p"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"description":"go-libp2p is the Go implementation of the libp2p Networking Stack. Prior to versions 0.27.8, 0.28.2, and 0.29.1 malicious peer can use large RSA keys to run a resource exhaustion attack \u0026 force a node to spend time doing signature verification of the large key. This vulnerability is present in the core/crypto module of go-libp2p and can occur during the Noise handshake and the libp2p x509 extension verification step. To prevent this attack, go-libp2p versions 0.27.8, 0.28.2, and 0.29.1 restrict RSA keys to \u003c= 8192 bits. To protect one's application, it is necessary to update to these patch releases and to use the updated Go compiler in 1.20.7 or 1.19.12. There are no known workarounds for this issue.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"libp2p nodes vulnerable to attack using large RSA keys","id":"CVE-2023-39533","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":7,"n_references":9,"next":{"headline":"Malformed GAP submessage triggers assertion failure","id":"CVE-2023-39534"},"packages":[{"ecosystem":"Go","fixed":["0.27.8","0.28.2","0.29.1"],"introduced":["0","0.28.0","0.29.0"],"last_affected":[],"package":"github.com/libp2p/go-libp2p","purl":"pkg:golang/github.com/libp2p/go-libp2p","source":"GO-2023-2000"},{"ecosystem":"Go","fixed":["0.27.8"],"introduced":["0"],"last_affected":[],"package":"github.com/libp2p/go-libp2p","purl":null,"source":"GHSA-876p-8259-xjgg"},{"ecosystem":"Go","fixed":["0.27.8"],"introduced":["0"],"last_affected":[],"package":"github.com/libp2p/go-libp2p","purl":"pkg:golang/github.com/libp2p/go-libp2p","source":"GHSA-876p-8259-xjgg"},{"ecosystem":"Go","fixed":["0.28.2"],"introduced":["0.28.0"],"last_affected":[],"package":"github.com/libp2p/go-libp2p","purl":null,"source":"GHSA-876p-8259-xjgg"},{"ecosystem":"Go","fixed":["0.28.2"],"introduced":["0.28.0"],"last_affected":[],"package":"github.com/libp2p/go-libp2p","purl":"pkg:golang/github.com/libp2p/go-libp2p","source":"GHSA-876p-8259-xjgg"},{"ecosystem":"Go","fixed":["0.29.1"],"introduced":["0.29.0"],"last_affected":[],"package":"github.com/libp2p/go-libp2p","purl":null,"source":"GHSA-876p-8259-xjgg"},{"ecosystem":"Go","fixed":["0.29.1"],"introduced":["0.29.0"],"last_affected":[],"package":"github.com/libp2p/go-libp2p","purl":"pkg:golang/github.com/libp2p/go-libp2p","source":"GHSA-876p-8259-xjgg"}],"prev":{"headline":"SES's dynamic import and spread operator provides possible path to arbitrary exfiltration and execution","id":"CVE-2023-39532"},"products":["go-libp2p"],"published":"2023-08-08","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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-01","vendors":["libp2p"]},"summary":"A malicious peer can cause resource exhaustion and denial of service in go-libp2p nodes by using large RSA keys during handshake verification.","url":"https://insights.sbomify.com/CVE-2023-39533/"}