Skip to main content

Magic Wormhole CVE-2026-42448

| EUVDEUVD-2026-31947 LOW
Path Traversal (CWE-22)
2026-05-06 https://github.com/magic-wormhole/magic-wormhole GHSA-cf92-gfcw-6v53
3.5
CVSS 3.1 · Vendor: https://github.com/magic-wormhole/magic-wormhole
View

Attack ChainAIDerived

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

  1. Access
    Attacker gains rendezvous service credentials
  2. Delivery
    Sender crafts malicious transfer with path traversal filenames
  3. Exploit
    Receiver initiates receive with existing output directory
  4. Execution
    Malicious file written outside intended directory
  5. Impact
    Attacker achieves arbitrary file write to receiver system

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 vulnerability requires three specific conditions to be present simultaneously: (1) the receiver must use the '--output' parameter to specify an output directory that already exists as a directory on the filesystem; (2) the attacker must be authenticated to and connected to the Magic Wormhole rendezvous service (PR:L requirement from CVSS); and (3) the attacker must craft a transfer with path traversal sequences in the filename or pathname. The receiving user must actively initiate the receive command and confirm the transfer, satisfying the UI:R requirement. Non-vulnerable configurations include: receivers who do not pre-create output directories (allowing Magic Wormhole to create the directory fresh), receivers using the application on systems with strict file permission enforcement, or receivers blocking the attacker's connection to the rendezvous server. The vulnerability does not affect the sender or other users who do not initiate a receive operation while pre-creating output directories.

Impact

This vulnerability presents moderate real-world risk with several mitigating factors. The CVSS score of 3.5 reflects the combination of network accessibility (AV:N), low attack complexity (AC:L), low privileged access requirement (PR:L), and user interaction needed (UI:R), with impact limited to integrity (I:L) and no confidentiality or availability loss. The PR:L requirement indicates the attacker must have authenticated access to the Magic Wormhole rendezvous service, which narrows the threat actor pool. The UI:R (user interaction required) score element reflects that the receiving user must actively initiate the receive command with the vulnerable parameter combination. The EPSS exploitation probability is not provided but given the low CVSS and authentication requirement, widespread automated exploitation is unlikely. No KEV status or POC code availability is confirmed in the input data. The practical attack surface is further constrained by the specific condition: the output directory must already exist as a directory at the time of receive. This is not a default-installation vulnerability but rather affects users following certain workflows. However, users who routinely pre-create output directories (common practice for organized file management) are exposed. The integrity-only impact (I:L) means sensitive file corruption, overwrite, or injection rather than immediate system compromise. For defenders, this is a real but contained risk that should be patched during normal update cycles; it does not warrant emergency response unless the system is handling sensitive file transfers.

Exploit ScenarioDerived

An attacker with authenticated access to a Magic Wormhole rendezvous server crafts a transfer containing a file with a path traversal sequence (e.g., '../../../etc/config'). A user on the receiving end initiates 'magic-wormhole receive' with a '--output' flag pointing to a pre-existing directory. The attacker sends the malicious file, and due to the path traversal vulnerability, the file is written to a location outside the intended output directory, potentially overwriting critical application or user files on the receiver's system.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 06, 2026

Path traversal vulnerability in Magic Wormhole receive command allows authenticated attackers to write files outside the intended output directory when the specified output directory already exists, enabling arbitrary file write with low complexity via network delivery of a specially crafted transfer request.

RemediationAI

Upgrade Magic Wormhole to version 0.24.0 or later immediately. Install the patched version using pip: 'pip install --upgrade magic-wormhole>=0.24.0'. For users unable to upgrade immediately, apply the workaround documented by the vendor: ensure that local target directories specified by the '--output' parameter do not already exist before initiating a receive operation. Create output directories dynamically during the receive operation rather than pre-creating them, or use a fresh temporary directory for each receive session. Note that this workaround changes user workflow and is intended only as a temporary measure pending upgrade. The patch version 0.24.0 is available from the official PyPI repository and can be verified via the GitHub repository at https://github.com/magic-wormhole/magic-wormhole/releases.

Affected VersionsENISA

magic-wormhole < 0.24.0

Affected Packages

pypi magic-wormhole fix: 0.24.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

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

Technical ContextAI · show details

Magic Wormhole is a Python-based secure file transfer utility that uses a rendezvous server and SPAKE2 key exchange to establish encrypted channels between sender and receiver. The vulnerability exists in the receive command's handling of the '--output' parameter (CPE: pkg:pip/magic-wormhole). The root cause is a path traversal flaw (CWE-22: Improper Limitation of a Pathname to a Restricted Directory) where the application fails to properly validate that file writes remain within the intended output directory when that directory pre-exists. The issue manifests when a receiver specifies an existing directory as the output target, allowing the sender to craft a transfer with embedded path traversal sequences (e.g., '../') that cause files to be written to arbitrary locations on the receiver's filesystem, bypassing the intended directory containment.

Know when the next one hits your stack

  • 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 (https://github.com/magic-wormhole/magic-wormhole) PRIMARY 3.5 LOW
AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N

Primary rating from Vendor (https://github.com/magic-wormhole/magic-wormhole) · only source for this CVE.

CVSS VectorVendor: https://github.com/magic-wormhole/magic-wormhole

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

DescriptionCVE.org

Impact

A receiver who specifies "--output <dir>" where that output directory currently exists (as a directory).

Patches

0.24.0 will contain the patch

Workarounds

Ensure local target directories specified by "--output" do not already exist

Resources

Private email and Signal communications from a user. Magic Wormhole thanks @marduc812

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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 LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
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.

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