Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/vulndb: potential Go vuln in github.com/libp2p/go-libp2p: CVE-2023-40583 #2030

Closed
GoVulnBot opened this issue Aug 25, 2023 · 1 comment
Closed

Comments

@GoVulnBot
Copy link

CVE-2023-40583 references github.com/libp2p/go-libp2p, which may be a Go module.

Description:
libp2p is a networking stack and library modularized out of The IPFS Project, and bundled separately for other tools to use. In go-libp2p, by using signed peer records a malicious actor can store an arbitrary amount of data in a remote node’s memory. This memory does not get garbage collected and so the victim can run out of memory and crash. If users of go-libp2p in production are not monitoring memory consumption over time, it could be a silent attack i.e. the attacker could bring down nodes over a period of time (how long depends on the node resources i.e. a go-libp2p node on a virtual server with 4 gb of memory takes about 90 sec to bring down; on a larger server, it might take a bit longer.) This issue was patched in version 0.27.4.

References:

Cross references:

See doc/triage.md for instructions on how to triage this report.

modules:
    - module: github.com/libp2p/go-libp2p
      vulnerable_at: 0.30.0
      packages:
        - package: go-libp2p
description: |-
    libp2p is a networking stack and library modularized out of The IPFS Project,
    and bundled separately for other tools to use. In go-libp2p, by using signed
    peer records a malicious actor can store an arbitrary amount of data in a remote
    node’s memory. This memory does not get garbage collected and so the victim
    can run out of memory and crash. If users of go-libp2p in production are not
    monitoring memory consumption over time, it could be a silent attack i.e. the
    attacker could bring down nodes over a period of time (how long depends on the
    node resources i.e. a go-libp2p node on a virtual server with 4 gb of memory
    takes about 90 sec to bring down; on a larger server, it might take a bit
    longer.) This issue was patched in version 0.27.4.
cves:
    - CVE-2023-40583
references:
    - advisory: https://github.com/libp2p/go-libp2p/security/advisories/GHSA-gcq9-qqwx-rgj3
    - fix: https://github.com/libp2p/go-libp2p/commit/45d3c6fff662ddd6938982e7e9309ad5fa2ad8dd
    - web: https://github.com/libp2p/go-libp2p/releases/tag/v0.27.4
    - web: https://github.com/libp2p/go-libp2p/releases/tag/v0.27.7

@tatianab
Copy link
Contributor

Duplicate of #2024

@tatianab tatianab marked this as a duplicate of #2024 Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants