CVE-2022-23492Protocol Libp2p
High 7.5 No auth needed
Follow: this CVE · Protocol · Protocol Libp2p We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 68
- Auth required
- No
- Published
- Dec 8, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
go-libp2p is the offical libp2p implementation in the Go programming language. Version `0.18.0` and older of go-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 go-libp2p, this component was designed to handle the regular churn of peers, not a targeted resource exhaustion attack. Users are advised to upgrade their version of go-libp2p to version `0.18.1` or newer. Users unable to upgrade may consult the denial of service (dos) mitigation page for more information on how to incorporate mitigation strategies, monitor your application, and respond to attacks.
What to do
- Apply the vendor's security update for Libp2p.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/libp2p/go-libp2p |
< 0.18.0 |
0.18.0 |
go get github.com/libp2p/go-libp2p@v0.18.0 |
| Go | github.com/libp2p/go-libp2p |
< 0.18.0 |
0.18.0 |
go get github.com/libp2p/go-libp2p@v0.18.0 |
Per OSV / GitHub Advisories (GHSA-j7qp-mfxf-8xjw, GO-2022-1148). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| protocol | libp2p | < 0.18.0 |
Official sources
References
Links published by the sources. Open them with care.
- docs.libp2p.io Vendor Advisory
- github.com Patch Third Party Advisory
- github.com Mitigation Third Party Advisory