CVE-2025-29606: Libp2p Denial of Service Vulnerability
MODERATECVE-2025-29606 is a MODERATE (CVSS 4.3) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Libp2p libraries in the PyPI ecosystem. The issue involves py-libp2p is vulnerable to dos attacks through use of large rsa keys. Remediation is available by upgrading affected packages to version 0.2.3.
CVE-2025-29606 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2025-29606
To remediate this vulnerability, upgrade all affected Libp2p dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install libp2p>=0.2.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show libp2p
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-29606, inspect your installed packages using pip:
pip show libp2p
Analyze the terminal output to locate any version of Libp2p in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.3), your application is affected.
Note: The pip show libp2p command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Libp2p, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-29606 Affected Libp2p Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
libp2p
|
PyPI |
< 0.2.3
|
0.2.3
|
References
Frequently Asked Questions
What is CVE-2025-29606?
Which Libp2p versions are affected?
What version fixes CVE-2025-29606?
Is libp2p affected?
What is the CVSS score of CVE-2025-29606?
What CWE is associated with CVE-2025-29606?
How can I check PyPI dependencies for CVE-2025-29606?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x8c6-gj59-6rx8",
"modified" : "2025-07-14T20:55:31Z",
"published" : "2025-07-14T06:30:30Z",
"aliases" : [ "CVE-2025-29606" ],
"summary" : "py-libp2p is vulnerable to DoS attacks through use of large RSA keys",
"details" : "py-libp2p before 0.2.3 allows a peer to cause a denial of service (resource consumption) via a large RSA key.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "libp2p"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-29606"
}, {
"type" : "WEB",
"url" : "https://github.com/libp2p/py-libp2p/issues/526"
}, {
"type" : "WEB",
"url" : "https://github.com/libp2p/py-libp2p/pull/531/files"
}, {
"type" : "WEB",
"url" : "https://github.com/libp2p/py-libp2p/commit/e150d3153af30530ce61d751bc166e099f1ead7a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/libp2p/py-libp2p"
}, {
"type" : "WEB",
"url" : "https://github.com/libp2p/py-libp2p/compare/v0.2.2...v0.2.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-14T20:55:31Z",
"nvd_published_at" : "2025-07-14T05:15:27Z"
}
}