{"id":"CVE-2026-57079","published":"2026-06-30T11:04:32Z","modified":"2026-07-20T06:42:11Z","title":"Net::BitTorrent versions before 2.1.0 for Perl write files outside the download directory via path traversal in…","vendor":"SANKO","product":"Net::BitTorrent","tier":"tail","description":{"text":"Net::BitTorrent versions before 2.1.0 for Perl write files outside the download directory via path traversal in peer-supplied metadata.\n\nNet::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.\n\nBecause 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00403,"percentile":0.3545,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/sanko/Net-BitTorrent.pm/security/advisories/GHSA-5wc6-r65f-62rr","tags":["vendor-advisory"]},{"url":"https://metacpan.org/release/SANKO/Net-BitTorrent-v2.1.0/changes","tags":["release-notes"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":7.09},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"sanko","affectedVersions":[{"vendor":"SANKO","product":"Net::BitTorrent","versions":["< 2.1.0"]}],"solutions":{"items":["Upgrade to version 2.1.0 or later."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-30T13:52:00.535187Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-40288","exploited":false,"provenance":"source"}}