Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 80%

CVE-2026-57081: CWE-674 Uncontrolled Recursion in SANKO Net::BitTorrent

0
High
VulnerabilityCVE-2026-57081cvecve-2026-57081cwe-674cwe-400
Published: 06/30/2026 (06/30/2026, 11:05:14 UTC)
Source: CVE Database V5
Vendor/Project: SANKO
Product: Net::BitTorrent

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.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

GitHub Actionsmore threats →cve
Net-BitTorrent
pkg:github/Net-BitTorrent
Affected versions
<=2.0.1

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

AILast updated: 07/20/2026, 18:08:04 UTC

Technical Analysis

CVE-2026-57081 is a high-severity vulnerability in SANKO's Net::BitTorrent Perl module (versions <=2.0.1) caused by uncontrolled recursion in the bdecode function. The decoder recurses once per nested list or dictionary level without limiting recursion depth. Each recursive call copies the remaining buffer by value, and list/dictionary branches capture the entire remainder, resulting in O(N^2) memory usage for N levels of nesting. This flaw allows remote attackers to cause memory exhaustion and crash the client by sending deeply nested bencoded input via any untrusted source such as .torrent files, BEP09 metadata, DHT messages, or tracker responses. No official patch or remediation is currently documented.

Potential Impact

The vulnerability leads to denial of service through memory exhaustion, causing the Net::BitTorrent client to terminate unexpectedly. There is no impact on confidentiality or integrity reported. The attack vector is remote and requires no privileges or user interaction. The CVSS 3.1 score is 7.5 (High), reflecting the ease of exploitation and the severe availability impact.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid processing untrusted or suspicious bencoded data from peers, .torrent files, or network sources. Implementing input validation or limiting recursion depth in the bdecode function could mitigate the risk, but no official or temporary fixes are documented at this time.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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: 6a43addd27e9c79719af497e

Added to database: 06/30/2026, 11:51:57 UTC

Last enriched: 07/20/2026, 18:08:04 UTC

Last updated: 08/14/2026, 00:41:13 UTC

Views: 86

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses