# CVE-2023-40583: libp2p nodes vulnerable to OOM attack

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Published: 2023-08-24T22:22:59.000Z
- Modified: 2026-06-17T06:18:34.563Z
- Also known as: GHSA-gcq9-qqwx-rgj3, GO-2023-2024
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- libp2p go-libp2p: < 0.27.4
- github.com/libp2p/go-libp2p (Go): before 0.27.4
- protocol libp2p: before 0.27.4

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/libp2p/go-libp2p/security/advisories/GHSA-gcq9-qqwx-rgj3> (advisory, vendor-advisory, web)
- <https://github.com/libp2p/go-libp2p/commit/45d3c6fff662ddd6938982e7e9309ad5fa2ad8dd> (fix, patch, web)
- <https://github.com/libp2p/go-libp2p/releases/tag/v0.27.4> (release-notes, web)
- <https://github.com/libp2p/go-libp2p/releases/tag/v0.27.7> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40583> (advisory)
- <https://github.com/libp2p/go-libp2p> (package)

## Sources

- CVE List: [CVE-2023-40583](https://www.cve.org/CVERecord?id=CVE-2023-40583), CVE Terms of Use, modified 2024-10-02
- GitHub Advisory Database: [GHSA-gcq9-qqwx-rgj3](https://github.com/advisories/GHSA-gcq9-qqwx-rgj3), CC-BY-4.0, modified 2023-11-17
- Go Vulnerability Database: [GO-2023-2024](https://pkg.go.dev/vuln/GO-2023-2024), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2023-40583](https://nvd.nist.gov/vuln/detail/CVE-2023-40583), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40583 · Whole record: https://cve.day/CVE-2023-40583.json · Rebuilt by cve.day 2026-11-25T22:58:27.369Z
