Skip to content
Heist/ feed
Back to feed
High

rust-libp2p-identity — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-33040

libp2p-rust is the official rust language Implementation of the libp2p networking stack. In versions prior to 0.49.3, the Gossipsub implementation accepts attacker-controlled PRUNE backoff values and may perform unchecked time arithmetic when storing backoff state. A specially crafted PRUNE control message with an extremely large backoff (e.g. u64::MAX) can lead to Duration/Instant overflow during backoff update logic, triggering a panic in the networking state machine. This is remotely reachable over a normal libp2p connection and does not require authentication. Any application exposing a libp2p Gossipsub listener and using the affected backoff-handling path can be crashed by a network attacker that can reach the service port. The attack can be repeated by reconnecting and replaying the crafted control message. This issue has been fixed in version 0.49.3.

Products
rust-libp2p-identity
Affected versions
0.2.10+20250205+ds-1, 0.2.12+20250805+ds-2, 0.2.13+ds-1
Fixed versions
Not specified
CVEs
CVE-2026-33040
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:59 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-33040

core-osv · Original source

Published 20 Mar 2026, 06:16 UTC

libp2p-rust is the official rust language Implementation of the libp2p networking stack. In versions prior to 0.49.3, the Gossipsub implementation accepts attacker-controlled PRUNE backoff values and may perform unchecked time arithmetic when storing backoff state. A specially crafted PRUNE control message with an extremely large backoff (e.g. u64::MAX) can lead to Duration/Instant overflow during backoff update logic, triggering a panic in the networking state machine. This is remotely reachable over a normal libp2p connection and does not require authentication. Any application exposing a libp2p Gossipsub listener and using the affected backoff-handling path can be crashed by a network attacker that can reach the service port. The attack can be repeated by reconnecting and replaying the crafted control message. This issue has been fixed in version 0.49.3.

osv:UBUNTU-CVE-2026-33040

rust-libp2p-identity

Fixed versions: Not specified

rust-libp2p-identity

Fixed versions: Not specified

rust-libp2p-identity

Fixed versions: Not specified

Complete source record
{
  "id": "6cbbbc9b2bf6d9f2f34a2a3aa8d3f87391c0265b7e426ac288c7e58d317ab5b8",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-33040",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-33040",
    "summary": "libp2p-rust is the official rust language Implementation of the libp2p networking stack. In versions prior to 0.49.3, the Gossipsub implementation accepts attacker-controlled PRUNE backoff values and may perform unchecked time arithmetic when storing backoff state. A specially crafted PRUNE control message with an extremely large backoff (e.g. u64::MAX) can lead to Duration/Instant overflow during backoff update logic, triggering a panic in the networking state machine. This is remotely reachable over a normal libp2p connection and does not require authentication. Any application exposing a libp2p Gossipsub listener and using the affected backoff-handling path can be crashed by a network attacker that can reach the service port. The attack can be repeated by reconnecting and replaying the crafted control message. This issue has been fixed in version 0.49.3.",
    "evidence": "osv:UBUNTU-CVE-2026-33040",
    "products": [
      {
        "name": {
          "value": "rust-libp2p-identity",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.2.10+20250205+ds-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-libp2p-identity",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.2.13+ds-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-libp2p-identity",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.2.10+20250205+ds-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.2.12+20250805+ds-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.2.13+ds-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-33040",
      "aliases": [
        "UBUNTU-CVE-2026-33040"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-libp2p-identity",
            "purl": "pkg:deb/ubuntu/rust-libp2p-identity?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.2.10+20250205+ds-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33040.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-libp2p-identity-dev",
                "binary_version": "0.2.10+20250205+ds-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-libp2p-identity",
            "purl": "pkg:deb/ubuntu/rust-libp2p-identity?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.2.13+ds-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33040.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-libp2p-identity-dev",
                "binary_version": "0.2.13+ds-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-libp2p-identity",
            "purl": "pkg:deb/ubuntu/rust-libp2p-identity?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.2.10+20250205+ds-1",
            "0.2.12+20250805+ds-2",
            "0.2.13+ds-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33040.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-libp2p-identity-dev",
                "binary_version": "0.2.13+ds-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:59.413716895Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-33040"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-33040",
        "https://www.cve.org/CVERecord?id=CVE-2026-33040",
        "https://github.com/libp2p/rust-libp2p/security/advisories/GHSA-gc42-3jg7-rxr2"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-33040",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360070,
  "published_at": "2026-03-20T06:16:00+00:00"
}