Live threats

All CVEs / Protocol

CVE-2023-40583Protocol Libp2p

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.1%
probability of exploitation in 30 days · percentile 67
Auth required
No
Published
Aug 25, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400
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

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Libp2p.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/libp2p/go-libp2p < 0.27.4 0.27.4 go get github.com/libp2p/go-libp2p@v0.27.4
Go github.com/libp2p/go-libp2p < 0.27.4 0.27.4 go get github.com/libp2p/go-libp2p@v0.27.4

Per OSV / GitHub Advisories (GHSA-gcq9-qqwx-rgj3, GO-2023-2024). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
protocollibp2p< 0.27.4

Official sources

References

Links published by the sources. Open them with care.