7.5
CWE
770 400
Advisory Published
Updated

CVE-2022-23487: libp2p denial of service vulnerability from lack of resource management

First published: Wed Dec 07 2022(Updated: )

js-libp2p is the official javascript Implementation of libp2p networking stack. Versions older than `v0.38.0` of js-libp2p are vulnerable to targeted resource exhaustion attacks. These attacks target libp2p’s connection, stream, peer, and memory management. An attacker can cause the allocation of large amounts of memory, ultimately leading to the process getting killed by the host’s operating system. While a connection manager tasked with keeping the number of connections within manageable limits has been part of js-libp2p, this component was designed to handle the regular churn of peers, not a targeted resource exhaustion attack. Users are advised to update their js-libp2p dependency to `v0.38.0` or greater. There are no known workarounds for this vulnerability.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Libp2p<0.38.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2022-23487?

    CVE-2022-23487 is a vulnerability in js-libp2p, the official JavaScript implementation of the libp2p networking stack, where versions older than v0.38.0 are vulnerable to targeted resource exhaustion attacks.

  • How can an attacker exploit CVE-2022-23487?

    An attacker can exploit CVE-2022-23487 by launching targeted resource exhaustion attacks that affect libp2p's connection, stream, peer, and memory management.

  • What is the severity of CVE-2022-23487?

    The severity of CVE-2022-23487 is high with a CVSS score of 7.5.

  • Which software versions are affected by CVE-2022-23487?

    Versions of js-libp2p older than v0.38.0 are affected by CVE-2022-23487.

  • How can I fix CVE-2022-23487?

    To fix CVE-2022-23487, you should update js-libp2p to version v0.38.0 or newer.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203