{"id":"CVE-2026-57079","aliases":["CVE-2026-57079"],"related":[],"kind":"vulnerability","state":"published","title":"Net::BitTorrent versions before 2.1.0 for Perl write files outside the download directory via path traversal in peer-supplied metadata","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Las versiones de Net::BitTorrent hasta la 2.0.1 para Perl escriben archivos fuera del directorio de descarga mediante salto de ruta en metadatos proporcionados por pares.\n\nNet::BitTorrent valida los componentes de la ruta de archivo solo en la ruta de ingesta del archivo .torrent. La ruta de metadatos de pares y magnet (_on_metadata_received, alcanzada desde la extensión BEP09 ut_metadata) pasa nombres de archivo proporcionados por el atacante directamente a Storage::add_file y Storage::_parse_file_tree, donde child() de Path::Tiny no colapsa ’..’. Una clave de árbol de archivos v2, un elemento files[].path de v1, o un nombre de archivo único que contenga segmentos ’..’ por lo tanto se resuelve fuera del directorio de descarga.\n\nDebido a que el par también controla los hashes de las piezas y los bytes servidos, la verificación de contenido pasa, por lo que un magnet o par malicioso escribe contenido elegido por el atacante a una ruta elegida por el atacante en el host de descarga.","source":"nvd"}],"published":"2026-06-30T11:04:32.211Z","modified":"2026-10-25T21:10:00.770Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"2.1.0","status":"affected"}],"vendor":"SANKO","product":"Net::BitTorrent","package":"Net-BitTorrent","repo":"https://github.com/sanko/Net-BitTorrent.pm","source":"cvelist"}],"references":[{"url":"https://github.com/sanko/Net-BitTorrent.pm/security/advisories/GHSA-5wc6-r65f-62rr","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/SANKO/Net-BitTorrent-v2.1.0/changes","tags":["release-notes"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-30T13:52:00.535Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-57079","url":"https://www.cve.org/CVERecord?id=CVE-2026-57079","licence":"CVE Terms of Use","modified":"2026-07-20T06:42:11.512Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-57079","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57079","licence":"Public domain","modified":"2026-10-25T21:10:00.770Z"}],"updatedAt":"2026-11-25T22:59:26.682Z","epss":{"score":0.00306,"percentile":0.2517,"date":"2026-12-01T12:00:22.000Z"}}