Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    RUSTSEC-2026-0534 (GHSA-VRX6-JCP8-VM7M)

    Vulnerability from osv_rustsec – Published: 2026-10-19 12:00 – Updated: 2026-11-13 12:33 – Source website
    VLAI
    Summary
    Unbounded backoff state from PRUNE messages for unknown topics
    Details

    A PRUNE control message names topics and asks for a backoff on each. The handler recorded a backoff for every named topic, including topics the local node had never joined. A peer can send PRUNEs naming many new short topic IDs with a long backoff. Each pair is kept until the backoff expires, up to an hour, even after the peer disconnects, so a stream of PRUNEs, possibly from many peer IDs, can use up the node's memory. Peer scoring does not penalise these messages.

    The fix ignores PRUNE entries for topics that are not in the node's mesh. It is in 0.50.1, and was backported to the main branch in libp2p/rust-libp2p#6707.


    {
      "affected": [
        {
          "database_specific": {
            "categories": [
              "denial-of-service"
            ],
            "cvss": null,
            "informational": null
          },
          "ecosystem_specific": {
            "affected_functions": null,
            "affects": {
              "arch": [],
              "functions": [],
              "os": []
            }
          },
          "package": {
            "ecosystem": "crates.io",
            "name": "libp2p-gossipsub",
            "purl": "pkg:cargo/libp2p-gossipsub"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0.0.0-0"
                },
                {
                  "fixed": "0.50.1"
                }
              ],
              "type": "SEMVER"
            }
          ],
          "versions": []
        }
      ],
      "aliases": [
        "GHSA-vrx6-jcp8-vm7m"
      ],
      "database_specific": {
        "license": "CC0-1.0"
      },
      "details": "A PRUNE control message names topics and asks for a backoff on each. The handler recorded a backoff for every named topic, including topics the local node had never joined. A peer can send PRUNEs naming many new short topic IDs with a long backoff. Each pair is kept until the backoff expires, up to an hour, even after the peer disconnects, so a stream of PRUNEs, possibly from many peer IDs, can use up the node\u0027s memory. Peer scoring does not penalise these messages.\n\nThe fix ignores PRUNE entries for topics that are not in the node\u0027s mesh. It is in 0.50.1, and was backported to the main branch in libp2p/rust-libp2p#6707.",
      "id": "RUSTSEC-2026-0534",
      "modified": "2026-11-13T12:33:03Z",
      "published": "2026-10-19T12:00:00Z",
      "references": [
        {
          "type": "PACKAGE",
          "url": "https://crates.io/crates/libp2p-gossipsub"
        },
        {
          "type": "ADVISORY",
          "url": "https://rustsec.org/advisories/RUSTSEC-2026-0534.html"
        },
        {
          "type": "WEB",
          "url": "https://github.com/libp2p/rust-libp2p/commit/9c647828abea0dfc0b4e827dff1e176ec8b44752"
        },
        {
          "type": "WEB",
          "url": "https://github.com/libp2p/rust-libp2p/pull/6707"
        }
      ],
      "related": [],
      "severity": [],
      "summary": "Unbounded backoff state from PRUNE messages for unknown topics"
    }