CVE-2026-57079

MEDIUM

Net::BitTorrent versions through 2.0.1 for Perl write files outside the download directory via path traversal in peer-supplied metadata

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-57079. PoCs published by HermesNA-1.

AI-analyzed exploit summary This repository contains an auto-generated stub module for CVE-2026-57079, a path traversal vulnerability in Net::BitTorrent (Perl) versions through 2.0.1. The code includes metadata and a placeholder structure but lacks actual exploit implementation for the described arbitrary file write vulnerability.

Description

Net::BitTorrent versions before 2.1.0 for Perl write files outside the download directory via path traversal in peer-supplied metadata. Net::BitTorrent validates file path components only on the .torrent-file ingest path. The peer and magnet metadata path (_on_metadata_received, reached from the BEP09 ut_metadata extension) passes attacker-supplied file names straight to Storage::add_file and Storage::_parse_file_tree, where Path::Tiny's child() does not collapse "..". A v2 file tree key, a v1 files[].path element, or a single-file name containing ".." segments therefore resolves outside the download directory. Because the peer also controls the piece hashes and the served bytes, content verification passes, so a malicious magnet or peer writes attacker-chosen content to an attacker-chosen path on the downloading host.

Exploits (1)

github STUB 1 stars
by HermesNA-1 · pythonpoc
https://github.com/HermesNA-1/SnakeSploit/tree/main/data/modules_generated/cve-2026-57079_netbittorrent_versions_through.py

This repository contains an auto-generated stub module for CVE-2026-57079, a path traversal vulnerability in Net::BitTorrent (Perl) versions through 2.0.1. The code includes metadata and a placeholder structure but lacks actual exploit implementation for the described arbitrary file write vulnerability.

Classification
Stub 98%
Attack Type
Other
Complexity
Moderate
Reliability
Theoretical
Target: Net::BitTorrent (Perl) versions through 2.0.1
No auth needed
Prerequisites: Target must be running a vulnerable version of Net::BitTorrent (Perl) · Network access to the BitTorrent service port
mistral-large-3 · analyzed Jul 09, 2026 Full analysis →

References (2)

Core 2

Scores

CVSS v3 5.3
EPSS 0.0031
EPSS Percentile 22.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact partial

Details

CWE
CWE-22
Status published
Products (2)
SANKO/Net::BitTorrent < 2.0.1
SANKO/Net::BitTorrent < 2.1.0
Published Jun 30, 2026
Tracked Since Jun 30, 2026