Memory leak in go-libp2p - CVE-2023-40583

 

Memory leak in go-libp2p - CVE-2023-40583

Published: August 24, 2023 / Updated: November 9, 2026


Vulnerability identifier: #VU162804
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-40583
CWE-ID: CWE-401
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an unauthenticated remote attacker to exhaust a go-libp2p node’s memory and crash it, causing denial of service.

The vulnerability exists due to acceptance of validly signed peer records without verifying their association with the sender, leaving records for unconnected peers in memory without cleanup. An unauthenticated remote attacker can repeatedly send records for randomly generated peers, accumulating retained data over time until the target runs out of memory without requiring victim interaction.


Affected software

go-libp2p

How to mitigate CVE-2023-40583

Install security update from vendor's website.

go-libp2p - update to 0.27.4

External References

Related Security Bulletins