---
id: CVE-2025-29606
aliases:
  - GHSA-x8c6-gj59-6rx8
  - PYSEC-2026-1536
title: py-libp2p is vulnerable to DoS attacks through use of large RSA keys
summary: py-libp2p is vulnerable to DoS attacks through use of large RSA keys
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'
vendor: libp2p
product: libp2p
ecosystem: pip
affected:
  - libp2p < 0.2.3
patched:
  - libp2p 0.2.3
published: '2025-07-14'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-x8c6-gj59-6rx8'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-29606'
  - url: 'https://github.com/libp2p/py-libp2p/issues/526'
  - url: 'https://github.com/libp2p/py-libp2p/pull/531/files'
  - url: >-
      https://github.com/libp2p/py-libp2p/commit/e150d3153af30530ce61d751bc166e099f1ead7a
  - url: 'https://github.com/libp2p/py-libp2p'
  - url: 'https://github.com/libp2p/py-libp2p/compare/v0.2.2...v0.2.3'
tags:
  - osv
  - pip
epss: 0.00331
epssPercentile: 0.23577
ingestedAt: '2026-07-08T18:25:54.147Z'
---

## Overview

py-libp2p before 0.2.3 allows a peer to cause a denial of service (resource consumption) via a large RSA key.

## Affected packages

- `libp2p < 0.2.3`

## Remediation

Upgrade to a patched release:

- `libp2p 0.2.3`
