CVE-2026-57081 Details
Description
Net::BitTorrent versions through 2.1.0 for Perl allow remote memory exhaustion via deeply nested bencoded input. bdecode recurses once per nested list or dictionary level with no depth cap, and each recursive call receives the remaining buffer by value while the list and dictionary branches capture the whole remainder, so every live recursion frame keeps its own copy of the shrinking buffer (O(N^2) bytes for an N-deep input). The decoder runs on every untrusted bencode source: .torrent files, BEP09 metadata fetched from peers, DHT messages, and tracker responses. A bencoded input of roughly 150,000 nested lists (about 150 KB on the wire) drives multi-gigabyte peak memory, so one short message from any peer, or one crafted .torrent file or magnet link, terminates the client.
A memory exhaustion vulnerability has been identified in Net::BitTorrent versions through 2.0.1 for Perl. This issue allows for remote denial-of-service by exploiting the bencode decoder, which recursively processes nested lists and dictionaries without a depth limit. Each recursive call retains a copy of the shrinking buffer, leading to quadratic memory usage. The vulnerability can be triggered by a crafted .torrent file, magnet link, or through metadata and messages from peers, causing the client to terminate after exceeding memory limits.
No patch is currently available for this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 30, 2026CISA-ADP
Assessed Jun 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/sanko/Net-BitTorrent.pm/security/advisories/GHSA-mv44-v82p-89xv | CPANSec | AdvisoryRemedyVendor |
| https://metacpan.org/release/SANKO/Net-BitTorrent-v2.1.0/changes | CPANSec |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | CPANSec |
| CWE-674 | Uncontrolled Recursion | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| Net::BitTorrent | <= v2.0.1 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 20, 2026 | CVE Modified | CPANSec |
| Jun 30, 2026 | CVE Modified | CISA-ADP |
| Jun 30, 2026 | New CVE Received | CPANSec |
Volerion