CVE-2026-57080: CWE-770 Allocation of Resources Without Limits or Throttling in SANKO Net::BitTorrent
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.
AI Analysis
Technical Summary
CVE-2026-57080 is a resource exhaustion vulnerability in SANKO's Net::BitTorrent Perl module versions up to 2.0.1. The vulnerability arises because the peer-wire protocol implementation trusts the 4-byte length prefix sent by connected peers without enforcing an upper bound. The receive_data function appends all incoming bytes to the input buffer, and the decoder waits until the full message is received before processing. A malicious peer can announce a length prefix up to approximately 4 GiB and stream bytes accordingly, causing the buffer to grow without limit and exhausting memory. Since peer connections are unauthenticated, any peer in the swarm can exploit this to cause denial of service. Legitimate messages are much smaller (largest is 16 KiB), so large length prefixes are anomalous.
Potential Impact
An attacker can remotely cause a denial of service by exhausting the memory of the process running Net::BitTorrent. This does not affect confidentiality or integrity but results in high impact on availability due to uncontrolled memory growth.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, consider restricting or validating peer message lengths at the application or network level to prevent processing of anomalously large messages.
CVE-2026-57080: CWE-770 Allocation of Resources Without Limits or Throttling in SANKO Net::BitTorrent
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.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-57080 is a resource exhaustion vulnerability in SANKO's Net::BitTorrent Perl module versions up to 2.0.1. The vulnerability arises because the peer-wire protocol implementation trusts the 4-byte length prefix sent by connected peers without enforcing an upper bound. The receive_data function appends all incoming bytes to the input buffer, and the decoder waits until the full message is received before processing. A malicious peer can announce a length prefix up to approximately 4 GiB and stream bytes accordingly, causing the buffer to grow without limit and exhausting memory. Since peer connections are unauthenticated, any peer in the swarm can exploit this to cause denial of service. Legitimate messages are much smaller (largest is 16 KiB), so large length prefixes are anomalous.
Potential Impact
An attacker can remotely cause a denial of service by exhausting the memory of the process running Net::BitTorrent. This does not affect confidentiality or integrity but results in high impact on availability due to uncontrolled memory growth.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, consider restricting or validating peer message lengths at the application or network level to prevent processing of anomalously large messages.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-06-23T18:20:33.514Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a43addd27e9c79719af497b
Added to database: 06/30/2026, 11:51:57 UTC
Last enriched: 07/20/2026, 18:07:56 UTC
Last updated: 08/14/2026, 00:41:13 UTC
Views: 76
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.