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.
Published: 2026-05-26
Score: 3.5 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A path traversal flaw exists in the receiver side of Magic Wormhole when the user specifies the --output option pointing at an already existing directory. The flaw allows the receiver to write files outside the intended output location, potentially overwriting existing files within that directory. The vulnerability is classified as CWE‑22 and can lead to local modification of files, compromising data integrity.

Affected Systems

The flaw affects all versions of Magic Wormhole prior to 0.24.0. Users running any older release should verify their installed version and plan an upgrade if possible.

Risk and Exploitability

The CVSS score of 3.5 indicates low to moderate severity. No EPSS data is available and the issue is not listed in the CISA KEV catalog, suggesting limited exploitation. The attack requires local execution of the receiver command and a pre‑existing output directory; it does not provide remote code execution. The risk is primarily to file integrity on the local machine, with a modest likelihood of exploitation under the stated conditions.

Generated by OpenCVE AI on May 26, 2026 at 19:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade magic‑wormhole to version 0.24.0 or later.
  • If an upgrade is not immediately possible, avoid using the --output option with directories that already exist, or ensure the directory is empty or removed before running the receive command.
  • Validate the intended output path before execution to prevent unintended file writes.

Generated by OpenCVE AI on May 26, 2026 at 19:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-cf92-gfcw-6v53 Magic Wormhole: receive, with --output pointing at an existing directory can be path-traversed
History

Wed, 27 May 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 26 May 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Magic-wormhole
Magic-wormhole magic-wormhole
Vendors & Products Magic-wormhole
Magic-wormhole magic-wormhole

Tue, 26 May 2026 18:00:00 +0000

Type Values Removed Values Added
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.
Title wormhole receive, with --output pointing at an existing directory can be path-traversed
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 3.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N'}


Subscriptions

Magic-wormhole Magic-wormhole
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-27T13:17:27.943Z

Reserved: 2026-04-27T13:55:58.693Z

Link: CVE-2026-42448

cve-icon Vulnrichment

Updated: 2026-05-27T13:17:24.371Z

cve-icon NVD

Status : Deferred

Published: 2026-05-26T18:16:48.320

Modified: 2026-05-26T20:26:12.327

Link: CVE-2026-42448

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-26T20:00:12Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')