Skip to main content

Net::BitTorrent CVE-2026-57079

| EUVDEUVD-2026-40288 MEDIUM
Path Traversal (CWE-22)
2026-06-30 CPANSec GHSA-5gfq-2rx4-6vwv
5.3
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Distribute crafted magnet link to victim
  2. Delivery
    Victim's Net::BitTorrent client connects to malicious peer
  3. Exploit
    Malicious peer delivers BEP09 ut_metadata with '..' path traversal in file list
  4. Install
    _on_metadata_received passes names to Storage::add_file without validation
  5. C2
    Path::Tiny child() resolves traversal outside download directory
  6. Execute
    Attacker serves payload bytes with matching piece hashes
  7. Impact
    Content verification passes; attacker-controlled file written to arbitrary path

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The victim must be running an application built on Net::BitTorrent 2.0.1 or earlier and must initiate a download that results in a peer connection to the attacker's node - either by opening a crafted magnet link or by the client peering with a malicious node in a shared swarm. The BEP09 ut_metadata extension, which is standard for magnet link operation and not a non-default feature, is the entry point; no special library configuration is needed to reach the vulnerable code path. Once the peer connection is established, exploitation proceeds automatically without further user interaction. The attacker must control at least one BitTorrent peer that the victim's client connects to, and must supply '..' path components in the metadata file list along with matching piece hashes for the chosen payload. Exploitation is bounded by the OS-level filesystem permissions of the process running Net::BitTorrent - the attacker cannot write to paths the process cannot write to - but no elevated privileges within the application are required.

Impact

The official NVD CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, score 5.3) contains a significant metric conflict with the vulnerability description: the vector assigns C:L (Confidentiality: Low) and I:N (Integrity: None), yet the described impact is unambiguously an arbitrary file write - an Integrity violation with no described Confidentiality impact. This inversion appears to be an error in the submitted vector; security teams should not use the official score as the basis for prioritization without verifying against the vendor advisory. An independent assessment placing I:H yields a score in the High range (approximately 7.5), which better reflects the real-world consequence of writing attacker-controlled content to sensitive paths. No EPSS data was provided. The vulnerability is not listed in CISA KEV and no public exploit code was identified. Real-world risk is moderated by the library's niche deployment footprint - Net::BitTorrent is a specialist Perl library, not a widely deployed enterprise component - but the intrinsic primitives available to an attacker (arbitrary content, arbitrary path, silent verification pass) are severe and can chain to code execution if the process has write access to paths such as cron directories, SSH authorized_keys, or shell initialization files.

Exploit ScenarioDerived

An attacker deploys a malicious BitTorrent peer and distributes a crafted magnet link via a forum, email, or torrent index site. When a victim's Perl application using Net::BitTorrent opens the magnet link and connects to the attacker's peer, the peer advertises BEP09 ut_metadata containing a files[].path entry such as ['..', '..', '.ssh', 'authorized_keys'] and simultaneously serves piece data - a crafted SSH public key - with matching hashes. Net::BitTorrent resolves the traversal path via Path::Tiny child(), writes the SSH key to ~/.ssh/authorized_keys, passes piece verification, and returns no error, granting the attacker SSH access to the host under the identity of the process owner.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 30, 2026

Arbitrary file write in Net::BitTorrent 2.0.1 and earlier allows a malicious BitTorrent peer to place attacker-controlled content at attacker-chosen filesystem paths outside the designated download directory. The library validates path components on the .torrent ingest path but omits identical validation for peer-supplied metadata received via the BEP09 ut_metadata extension, causing file names containing '..' segments to resolve to traversal targets when passed to Storage::add_file. Because the attacking peer controls both the piece hashes and the served bytes, content verification passes silently, making the write invisible to the application. No public exploit has been identified at time of analysis, and this CVE is not listed in CISA KEV.

RemediationAI

Consult the vendor security advisory at https://github.com/sanko/Net-BitTorrent.pm/security/advisories/GHSA-5wc6-r65f-62rr for the confirmed patched release version, which was not independently specified in the available data; upgrade to that version as the primary remediation. Until a patch is applied, restrict Net::BitTorrent deployments to trusted, controlled peer sets by avoiding public magnet links and disabling connections to unknown peers, which prevents the BEP09 ut_metadata path from receiving attacker-controlled metadata - note this eliminates magnet link functionality. If the library exposes configuration to disable the ut_metadata extension or BEP09 support, disabling it removes the vulnerable code path at the cost of magnet link compatibility. Operators should run the process under a dedicated low-privilege account confined to a chroot, container, or filesystem namespace where write access is restricted to the intended download directory; this does not prevent the traversal attempt but contains the impact to that directory boundary. Do not rely on piece-hash verification as a security control for path integrity, as the attacker controls both the hash values and the served bytes.

Affected VersionsENISA

Net::BitTorrent 0 ≤2.0.1

Affected Packages

euvd net_bittorrent no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Net::BitTorrent (CPE: cpe:2.3:a:sanko:net::bittorrent:*:*:*:*:*:*:*:*) is a Perl implementation of the BitTorrent protocol. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory): path component sanitization is applied only during .torrent file ingestion and is entirely absent from the peer metadata code path. The _on_metadata_received handler, reached via the BEP09 ut_metadata extension that underpins magnet link functionality, passes attacker-supplied file names directly to Storage::add_file and Storage::_parse_file_tree. These functions use Path::Tiny's child() method, which does not collapse '..' sequences, allowing traversal out of the configured download root. The flaw affects v2 file tree keys, v1 files[].path array elements, and single-file name fields alike. Since the BitTorrent protocol permits a peer to serve arbitrary piece data alongside advertised hashes, an attacker simultaneously provides the traversal path and the expected hash, causing the client's piece-verification step to succeed and the out-of-bounds write to complete without any error signal.

Know when Net gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 7.5 HIGH

Network-delivered exploit requires no privileges; arbitrary file write is high Integrity impact; no Confidentiality or Availability impact described.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
CVSS changed
Jun 30, 2026 - 14:22 NVD
5.3 (MEDIUM)
CVE Published
Jun 30, 2026 - 11:04 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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 (_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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
niche Perl BitTorrent client library, limited enterprise footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Net

View all
CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2026-111497 CRITICAL POC
9.2 Oct 21

Remote code execution is possible in Node.js releases that bundle a vulnerable Brotli decoder: a malformed brotli-compre

CVE-2023-38180 HIGH
7.5 Aug 08

.NET and Visual Studio Denial of Service Vulnerability. Rated high severity (CVSS 7.5), this vulnerability is remotely e

CVE-2026-69439 HIGH POC
8.8 Sep 08

Heap-based buffer overflow (CWE-122) in Microsoft .NET and Visual Studio allows a network-based unauthenticated attacker

CVE-2026-71328 HIGH POC
8.8 Sep 08

Heap-based buffer overflow in Microsoft Visual Studio 2022 and 2026 enables network-delivered remote code execution when

CVE-2026-62886 HIGH POC
7.8 Aug 11

Privilege escalation in Microsoft .NET runtimes (8.0, 9.0, and 10.0) and Microsoft Visual Studio 2022 and 2026 results f

CVE-2026-62871 HIGH POC
7.8 Aug 11

Heap-based buffer overflow (CWE-122) in Microsoft .NET enables local code execution across all actively supported .NET r

CVE-2026-70354 HIGH POC
7.8 Aug 11

Local code execution via out-of-bounds write in Microsoft .NET allows an unauthenticated local attacker to achieve full

CVE-2026-62909 HIGH POC
7.8 Aug 11

Local privilege escalation in Microsoft .NET (versions 8.0, 9.0, and 10.0) and Microsoft Visual Studio 2022/2026 allows

CVE-2026-62901 HIGH POC
7.5 Aug 11

Denial-of-service in Microsoft .NET runtimes and Visual Studio allows unauthenticated remote attackers to crash or hang

CVE-2026-62897 HIGH POC
7.0 Aug 11

Integer overflow in Microsoft .NET Framework and modern .NET runtimes enables local code execution with full process com

CVE-2026-62898 HIGH POC
7.5 Aug 11

Use-after-free memory corruption in Microsoft's QUIC protocol implementation (MsQuic) exposes sensitive heap memory to u

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy