CVE-2026-32116

Magic Wormhole: "wormhole receive" allows arbitrary local file overwrite

Published Mar 12, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
Magic Wormhole makes it possible to get arbitrary-sized files and directories from one computer to another. From 0.21.0 to before 0.23.0, receiving a file (wormhole receive) from a malicious party could result in overwriting critical local files, including ~/.ssh/authorized_keys and .bashrc. This could be used to compromise the receiver's computer. Only the sender of the file (the party who runs wormhole send) can mount the attack. Other parties (including the transit/relay servers) are excluded by the wormhole protocol. This vulnerability is fixed in 0.23.0.

Analysis

AI-generated

Technical impact

Magic Wormhole allows the sender to transmit files to the receiver. From versions 0.21.0 through before 0.23.0, the receive operation did not guard against overwriting existing local files; the receiver could overwrite sensitive files such as ~/.ssh/authorized_keys and .bashrc, effectively modifying the user’s environment and authentication configuration. This introduces a Local File Overwrite weakness (CWE‑22) and creates the possibility for an attacker to gain unauthorized access or execute arbitrary code on the victim’s machine.

Affected Systems

The vulnerability affects the magic‑wormhole project, specifically versions 0.21.0 up to but not including 0.23.0. Any instance running these versions that accepts a receive operation from an untrusted sender is impacted.

Risk and Exploitability

The vulnerability has a CVSS score of 8.2, indicating high severity. The EPSS score is less than 1%, suggesting low current exploitation probability, and it is not listed in the CISA KEV catalog. Attack requires the sender to run wormhole send and the receiver to execute wormhole receive; the attacker must have local access to a device that will accept the file, but once performed, a malicious file can replace critical configuration files. The fix is to upgrade to 0.23.0 or later, which removes the vulnerability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade magic-wormhole to version 0.23.0 or newer.

Generated by OpenCVE AI on March 17, 2026 at 16:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4g4c-mfqg-pj8r Magic Wormhole: "wormhole receive" allows arbitrary local file overwrite
History
Type Values Removed Values Added
First Time appeared Magic-wormhole Project
Magic-wormhole Project magic Wormhole
CPEs cpe:2.3:a:magic-wormhole_project:magic_wormhole:*:*:*:*:*:python:*:*
Vendors & Products Magic-wormhole Project
Magic-wormhole Project magic Wormhole
Metrics cvssV3_1

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

Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Magic-wormhole
Magic-wormhole magic-wormhole
Vendors & Products Magic-wormhole
Magic-wormhole magic-wormhole
Type Values Removed Values Added
Description Magic Wormhole makes it possible to get arbitrary-sized files and directories from one computer to another. From 0.21.0 to before 0.23.0, receiving a file (wormhole receive) from a malicious party could result in overwriting critical local files, including ~/.ssh/authorized_keys and .bashrc. This could be used to compromise the receiver's computer. Only the sender of the file (the party who runs wormhole send) can mount the attack. Other parties (including the transit/relay servers) are excluded by the wormhole protocol. This vulnerability is fixed in 0.23.0.
Title Magic Wormhole: "wormhole receive" allows arbitrary local file overwrite
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N'}

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 13, 2026, 4:24 PM
Reserved
Mar 10, 2026, 10:02 PM
Status
Analyzed
Published
Mar 12, 2026, 6:16 PM
Modified
Jun 17, 2026, 10:35 AM