CVE-2026-57080 Details
Description
Net::BitTorrent versions through 2.1.0 for Perl allow remote memory exhaustion via an uncapped peer-wire message-length prefix. The peer-wire framing in _process_messages trusts the 4-byte length prefix sent by a connected peer with no upper bound, while receive_data appends every inbound byte to the input buffer. A peer announces a length prefix of up to about 4 GiB and then streams bytes; the decoder waits until the buffer holds the full message before processing it, so the buffer grows without limit. Peer connections are unauthenticated, so any peer in the swarm exhausts the downloading process's memory. The largest legitimate message is a 16 KiB piece block, so any announced length far above that is anomalous.
A denial-of-service vulnerability has been identified in Net::BitTorrent versions through 2.0.1 for Perl. The issue arises from the peer-wire message framing, which improperly trusts the 4-byte length prefix sent by connected peers, allowing for remote memory exhaustion. The '_process_messages' function reads the length prefix without any upper limit, while 'receive_data' continuously appends incoming bytes to the input buffer. This unbounded buffering can be exploited by a peer that announces a length prefix of up to approximately 4 GiB, leading to excessive memory consumption. Since peer connections are unauthenticated, any peer in the swarm can exploit this vulnerability, causing the downloading process to run out of memory. The vulnerability is particularly concerning because it can be easily amplified across multiple connections, creating a significant denial-of-service impact on active downloads.
It is recommended to modify the '_process_messages' function to reject length prefixes above a reasonable maximum, such as 1 MiB, and disconnect the peer instead of allowing unbounded buffering.
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-7jr6-2jf4-6qc4 | CPANSec | AdvisoryTechnical DescriptionVendor |
| 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-770 | Allocation of Resources Without Limits or Throttling | 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