Libp2pApplication · Protocol

CVE-2022-23486

HIGH · 7.5 CVSS v3.1 Published 2022-12-07
Fix available
A fix is available. Upgrade to 0.45.1 or later.
See remediation →
84/100
Remediation priority · High
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
libp2p-rust is the official rust language Implementation of the libp2p networking stack. In versions prior to 0.45.1 an attacker node can cause a victim node to allocate a large number of small memory chunks, which can ultimately lead to the victim’s process running out of memory and thus getting killed by its operating system. When executed continuously, this can lead to a denial of service attack, especially relevant on a larger scale when run against more than one node of a libp2p based network. Users are advised to upgrade to `libp2p` `v0.45.1` or above. Users unable to upgrade should reference the DoS Mitigation page for more information on how to incorporate mitigation strategies, monitor their application, and respond to attacks: https://docs.libp2p.io/reference/dos-mitigation/.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

In libp2p-rust versions prior to 0.45.1, an attacker node can trigger a victim node to allocate an excessive number of small memory chunks, causing memory exhaustion. The victim's process can be terminated by the OS due to out-of-memory conditions, enabling denial of service attacks when exploited repeatedly against network nodes.

MitigationUpgrade libp2p to version 0.45.1 or higher. If upgrading is not feasible, implement DoS mitigation strategies as documented in the libp2p DoS Mitigation guide and monitor application memory usage.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Libp2pApplication
Affected:< 0.45.1

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify libp2p dependency in your project
    Review your Cargo.toml or lock file for the libp2p crate and note the version number specified
    Affected if The version listed is less than 0.45.1 (e.g., 0.45.0, 0.44.x, etc.)
  2. Verify the actual resolved version
    Check your Cargo.lock file for the resolved libp2p version, as transitive dependencies or overrides may differ from what's declared in Cargo.toml
    Affected if The resolved version in Cargo.lock is below 0.45.1
  3. Confirm your application exposes libp2p to the network
    Review your configuration to determine if your libp2p node accepts incoming connections from remote peers
    Affected if Your node listens for and accepts connections from untrusted network peers on any transport
  4. Check if peer authentication is enforced
    Inspect your connection handler or security settings to verify if peer validation or authentication is required before accepting inbound connections
    Affected if No peer authentication or strict validation is configured for inbound connections

You are affected if your deployed libp2p version is below 0.45.1 AND your node accepts connections from untrusted remote peers.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 0.45.1 or later
Fixed in 0.45.1
Interim mitigation

Upgrade libp2p to version 0.45.1 or higher. If upgrading is not feasible, implement DoS mitigation strategies as documented in the libp2p DoS Mitigation guide and monitor application memory usage.

Recommended fix High confidence

libp2p v0.45.1 or above

  1. Check the current version of libp2p in your project (typically in Cargo.toml)
  2. Update the libp2p dependency to version 0.45.1 or higher in your Cargo.toml file (e.g., libp2p = "0.45.1")
  3. Run `cargo update` or `cargo build` to fetch the new dependency
  4. Rebuild and test your application to verify compatibility with the updated library
  5. Deploy the updated application
Caveat Review the libp2p changelog and release notes for any breaking changes between your current version and v0.45.1

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Libp2p Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing4.0 h
  • Review / QA2.0 h
10.0 hours of engineering $1,720
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,752.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2022-23486 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2022-23486 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data