Skip to content
Heist/ feed
Back to feed
High

go-libp2p denial of service vulnerability from lack of resource management

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-23492
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 18:46 UTC · Revision 1

Source evidence

go-libp2p denial of service vulnerability from lack of resource management

core-osv · Original source

Published 8 Dec 2022, 00:08 UTC

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.

osv:CVE-2022-23492
Complete source record
{
  "id": "41e99c0f558f9045411567a2b816c8f8472eb187fc467a191bf9ce3c335fc48d",
  "url": "https://osv.dev/vulnerability/CVE-2022-23492",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "go-libp2p denial of service vulnerability from lack of resource management",
    "summary": "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.",
    "evidence": "osv:CVE-2022-23492",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-23492",
      "aliases": [
        "CVE-2022-23492",
        "GHSA-j7qp-mfxf-8xjw",
        "GO-2022-1148"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libp2p/go-libp2p",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5bab5811001a3442f3dabeec03a1c045cc9ef88a"
                },
                {
                  "fixed": "15d7dfbf54264ead8e6f49ca658d79c90635e2de"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:protocol:libp2p:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.18.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "15d7dfbf54264ead8e6f49ca658d79c90635e2de"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/libp2p/js-libp2p",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "fdfc2377806caa5820488f2866ca87b57f2a5546"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:protocol:libp2p:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.18.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/libp2p/rust-libp2p",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "aa71158e5cc33e669f1cac3396bad780cfdece59"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:protocol:libp2p:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.18.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.17.0",
            "v0.16.0",
            "v0.15.0-rc.1",
            "v0.16.0-dev",
            "v0.14.4",
            "v0.14.3",
            "v0.14.2",
            "v0.14.1",
            "v0.14.0",
            "v0.13.0",
            "v0.12.0",
            "v0.11.0",
            "v0.10.3",
            "v0.10.2",
            "v0.10.1",
            "v0.10.0",
            "v0.9.6",
            "v0.9.5",
            "v0.9.4",
            "v0.9.3",
            "v0.9.2",
            "v0.9.1",
            "v0.9.0",
            "v0.8.3",
            "v0.8.2",
            "v0.8.1",
            "v0.8.0",
            "v0.7.4",
            "v0.7.3",
            "v0.7.2",
            "v0.7.1",
            "v0.7.0",
            "v0.6.1",
            "v0.6.0",
            "v0.5.2",
            "v0.5.1",
            "v0.0.30",
            "v0.5.0",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0",
            "v0.3.1",
            "v0.3.0",
            "v0.2.1",
            "v0.2.0",
            "v0.1.2",
            "v0.1.1",
            "v0.1.0",
            "v0.0.29",
            "v0.0.28",
            "v0.0.27",
            "v0.0.26",
            "v0.0.25",
            "v0.0.24",
            "v0.0.23",
            "v0.0.22",
            "v0.0.21",
            "v0.0.20",
            "v0.0.19",
            "v0.0.18",
            "v0.0.17",
            "v0.0.16",
            "v0.0.15",
            "v0.0.14",
            "v0.0.13",
            "v0.0.12",
            "v0.0.11",
            "v0.0.10",
            "v0.0.9",
            "v0.0.8",
            "v0.0.7",
            "v0.0.6",
            "v0.0.5",
            "v0.0.4",
            "v0.0.3",
            "v0.0.2",
            "gx/v6.0.29",
            "gx/v6.0.23",
            "gx/v6.0.22",
            "gx/v6.0.21",
            "gx/v6.0.20",
            "gx/v6.0.19",
            "gx/v6.0.18",
            "gx/v6.0.17",
            "gx/v6.0.16",
            "gx/v6.0.15",
            "gx/v6.0.14",
            "gx/v6.0.13",
            "gx/v6.0.12",
            "gx/v6.0.11",
            "gx/v6.0.10",
            "gx/v6.0.9",
            "gx/v6.0.8",
            "gx/v6.0.7",
            "gx/v6.0.6",
            "gx/v6.0.5",
            "gx/v6.0.4",
            "gx/v6.0.3",
            "gx/v6.0.2",
            "gx/v6.0.1",
            "gx/v5.0.17",
            "gx/v5.0.16",
            "gx/v5.0.14",
            "gx/v5.0.13",
            "gx/v5.0.12",
            "gx/v5.0.11",
            "gx/v5.0.10",
            "gx/v5.0.9",
            "gx/v5.0.8",
            "gx/v5.0.6",
            "gx/v5.0.3",
            "gx/v5.0.2",
            "gx/v5.0.1",
            "gx/v4.5.4",
            "gx/v4.5.1",
            "gx/v4.5.0",
            "gx/v4.4.4",
            "gx/v4.4.3",
            "gx/v4.4.1",
            "gx/v4.4.0",
            "gx/v4.3.12",
            "gx/v4.3.11",
            "gx/v4.3.9",
            "gx/v4.3.10",
            "gx/v4.3.8",
            "gx/v4.3.7",
            "gx/v4.3.6",
            "gx/v4.3.5",
            "gx/v4.3.4",
            "gx/v4.3.3",
            "gx/v4.3.2",
            "gx/v4.3.1",
            "gx/v4.2.0",
            "gx/v4.1.0",
            "gx/v4.0.4",
            "gx/v4.0.3",
            "gx/v4.0.2",
            "gx/v4.0.0",
            "gx/v3.6.0",
            "gx/v3.5.4",
            "gx/v3.5.3",
            "gx/v3.5.2",
            "gx/v3.5.1",
            "gx/v3.5.0",
            "gx/v3.4.1",
            "gx/v3.4.0",
            "gx/v3.3.7",
            "gx/v3.3.4",
            "gx/v3.3.2",
            "gx/v3.3.1",
            "gx/v3.2.3",
            "gx/v3.2.0",
            "gx/v2.0.3",
            "gx/v2.0.1",
            "gx/v1.0.0",
            "v0.16.5",
            "v0.16.4",
            "v0.16.3",
            "v0.16.2",
            "v0.16.1",
            "v0.15.2",
            "v0.15.1",
            "v0.15.0",
            "v0.13.3",
            "v0.13.2",
            "v0.13.1",
            "v0.12.4",
            "v0.12.3",
            "v0.12.2",
            "v0.6.2",
            "v0.5.5",
            "v0.5.4",
            "v0.5.3",
            "v0.0.1",
            "v0.14.0-alpha.1",
            "0.13.2",
            "v0.2.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23492.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.245700613Z",
      "provider": "osv",
      "references": [
        "https://docs.libp2p.io/reference/dos-mitigation/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23492.json",
        "https://github.com/libp2p/go-libp2p/security/advisories/GHSA-j7qp-mfxf-8xjw",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-23492",
        "https://github.com/libp2p/go-libp2p/commit/15d7dfbf54264ead8e6f49ca658d79c90635e2de"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-400"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23492.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-23492",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 488734,
  "published_at": "2022-12-08T00:08:11.21+00:00"
}