CVE-2026-42448
Deferred Deferred - Pending Action
Path Traversal in Magic Wormhole Prior to 0.24.0

Publication date: 2026-05-26

Last updated on: 2026-05-26

Assigner: GitHub, Inc.

Description
Magic Wormhole makes it possible to get arbitrary-sized files and directories from one computer to another. Prior to 0.24.0, there is a path traversal when a receiver who specifies "--output <dir>" where that output directory currently exists (as a directory). This vulnerability is fixed in 0.24.0.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-26
Last Modified
2026-05-26
Generated
2026-06-16
AI Q&A
2026-05-26
EPSS Evaluated
2026-06-14
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
magic_wormhole magic_wormhole to 0.24.0 (exc)
magic_wormhole magic_wormhole 0.24.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-42448 is a path traversal vulnerability in the magic-wormhole tool versions 0.23.0 and earlier. It occurs when a receiver uses the `wormhole receive` command with the `--output` flag pointing to an existing directory. The tool does not properly validate the output path in this case, which can allow files to be written outside the intended directory.

This vulnerability has been fixed in version 0.24.0.

Impact Analysis

The primary impact of this vulnerability is on data integrity. An attacker could exploit the path traversal issue to modify files outside the intended output directory when receiving files via magic-wormhole.

The vulnerability has a low severity score of 3.5 and requires network access, low privileges, and user interaction to be exploited.

Detection Guidance

This vulnerability involves the use of the `wormhole receive` command with the `--output` flag pointing to an existing directory, which can lead to path traversal and unintended file writes outside the intended directory.

To detect if this vulnerability is being exploited or present on your system, you can check for usage of the `wormhole receive` command with the `--output` option targeting directories that already exist.

A possible command to audit recent usage or running processes might be:

  • Check running processes for `wormhole receive` usage: `ps aux | grep 'wormhole receive'`
  • Search shell history for commands using `--output` with existing directories: `grep -- '--output' ~/.bash_history`

Additionally, monitoring file system changes outside expected directories after running `wormhole receive` could indicate exploitation attempts.

Mitigation Strategies

The primary mitigation step is to upgrade magic-wormhole to version 0.24.0 or later, where this vulnerability has been fixed.

Until the upgrade can be performed, users should ensure that the directory specified with the `--output` flag in the `wormhole receive` command does not already exist as a directory.

This prevents the path traversal issue by avoiding the condition that triggers the vulnerability.

Compliance Impact

The vulnerability CVE-2026-42448 in magic-wormhole allows an attacker to perform path traversal, potentially modifying files outside the intended directory. This primarily impacts data integrity.

While the CVE description and resources do not explicitly mention compliance with standards such as GDPR or HIPAA, any compromise of data integrity could have implications for these regulations, which require protection of data accuracy and integrity.

Organizations using affected versions should consider this vulnerability in their risk assessments and remediation plans to maintain compliance with data protection standards.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-42448. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart