CVE-2025-29606 py-libp2p is vulnerable to DoS attacks through use of large RSA keys

Medium 4.3 Published Updated

A remote peer can cause resource exhaustion and denial of service in py-libp2p by sending a large RSA key.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-29606?

CVE-2025-29606 is a medium-severity denial of service vulnerability in py-libp2p, published on 14 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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

Weakness: CWE-770

Which versions are affected by CVE-2025-29606?

3 open source packages ship an affected version, including libp2p.

PackageAffectedFixed in
libp2p PyPIAll versions0.2.3
libp2p PyPIAll versions0.2.3
libp2p PyPIAll versions0.2.3

How do I fix CVE-2025-29606?

Upgrade libp2p to 0.2.3 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-29606 being exploited?

There is no known exploitation of CVE-2025-29606 in the wild and no public exploit code.

Sources

Also known as GHSA-x8c6-gj59-6rx8, PYSEC-2026-1536.

Is CVE-2025-29606 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free