# CVE-2026-57079: Net::BitTorrent versions before 2.1.0 for Perl write files outside the download directory via path traversal in peer-supplied metadata

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- 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.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-06-30T11:04:32.211Z
- Modified: 2026-10-25T21:10:00.770Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

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

(As written by CVE List.)

## Affected

- Net-BitTorrent: before 2.1.0

## References

- <https://github.com/sanko/Net-BitTorrent.pm/security/advisories/GHSA-5wc6-r65f-62rr> (vendor-advisory)
- <https://metacpan.org/release/SANKO/Net-BitTorrent-v2.1.0/changes> (release-notes)

## Sources

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

---

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