# CVE-2026-57080: Net::BitTorrent versions through 2.1.0 for Perl allow remote memory exhaustion via an uncapped peer-wire message-length prefix

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-06-30T11:04:56.820Z
- Modified: 2026-10-25T21:10:00.770Z
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

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

(As written by CVE List.)

## Affected

- Net-BitTorrent: up to 2.1.0

## References

- <https://github.com/sanko/Net-BitTorrent.pm/security/advisories/GHSA-7jr6-2jf4-6qc4> (vendor-advisory)
- <https://metacpan.org/release/SANKO/Net-BitTorrent-v2.1.0/changes> (release-notes)

## Sources

- CVE List: [CVE-2026-57080](https://www.cve.org/CVERecord?id=CVE-2026-57080), CVE Terms of Use, modified 2026-07-20
- NVD: [CVE-2026-57080](https://nvd.nist.gov/vuln/detail/CVE-2026-57080), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-57080 · Whole record: https://cve.day/CVE-2026-57080.json · Rebuilt by cve.day 2026-11-25T22:59:26.683Z
