Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker gains rendezvous service credentials
-
DeliverySender crafts malicious transfer with path traversal filenames
-
ExploitReceiver initiates receive with existing output directory
-
ExecutionMalicious file written outside intended directory
-
ImpactAttacker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-31947
GHSA-cf92-gfcw-6v53
NVD
CVE.org
EPSS
Exploit-DB