CVE-2026-57081 Net::BitTorrent versions through 2.1.0 for Perl allow remote memory exhaustion via deeply nested bencoded input

High 7.5 Published Updated

Remote attackers can cause denial of service in Perl applications using Net::BitTorrent by sending deeply nested bencoded data that exhausts memory.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-57081?

CVE-2026-57081 is a high-severity denial of service vulnerability in SANKO Net::BitTorrent, published on 30 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-674, CWE-400

Which versions are affected by CVE-2026-57081?

How do I fix CVE-2026-57081?

No fix has been published for CVE-2026-57081 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-57081 being exploited?

There is no known exploitation of CVE-2026-57081 in the wild and no public exploit code.

Sources

Also known as GHSA-39fp-mc5w-p8hh, GHSA-mv44-v82p-89xv.

Is CVE-2026-57081 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free