CVE-2026-57079

Source
https://cve.org/CVERecord?id=CVE-2026-57079
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57079.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-57079
Aliases
  • GHSA-5wc6-r65f-62rr
Published
2026-06-30T11:04:32.211Z
Modified
2026-07-08T08:14:12.863811728Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
Net::BitTorrent versions through 2.0.1 for Perl write files outside the download directory via path traversal in peer-supplied metadata
Details

Net::BitTorrent versions through 2.0.1 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 (onmetadatareceived, reached from the BEP09 utmetadata extension) passes attacker-supplied file names straight to Storage::addfile and Storage::parsefiletree, 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57079.json",
    "cwe_ids": [
        "CWE-22"
    ],
    "cna_assigner": "CPANSec"
}
References

Affected packages

Git / github.com/sanko/net-bittorrent.pm

Affected ranges

Type
GIT
Repo
https://github.com/sanko/net-bittorrent.pm
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "DESCRIPTION"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.0.1"
        },
        {
            "fixed": "2.0.1"
        }
    ]
}

Affected versions

v2.*
v2.0.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57079.json"