Magic Wormhole: "wormhole receive" allows arbitrary local file overwrite
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| magic-wormhole | magic-wormhole | 0.21.0 to before 0.23.0 | 0.23.0 | Patch available | CNA |
| — | magic-wormhole (PyPI) | 0.21.0 to before 0.23.0 | 0.23.0 | Patch available | GHSA-4g4c-mfqg-pj8r |
- magic-wormhole Vendormagic-wormhole Affected 0.21.0 to before 0.23.0 Fixed in 0.23.0 Patch available CNA
- magic-wormhole (PyPI) Vendor— Affected 0.21.0 to before 0.23.0 Fixed in 0.23.0 Patch available GHSA-4g4c-mfqg-pj8r
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:magic-wormhole_project:magic_wormhole:*:*:*:*:*:python:*:* | 0.21.0 to before 0.23.0 | Vulnerable | Magic-wormhole Project |
- cpe:2.3:a:magic-wormhole_project:magic_wormhole:*:*:*:*:*:python:*:* Versions 0.21.0 to before 0.23.0 Vulnerable ·Magic-wormhole Project
Remediation
- Fix · CNA magic-wormhole (magic-wormhole) Fixed in 0.23.0
- Fix · GHSA-4g4c-mfqg-pj8r magic-wormhole (PyPI) Fixed in 0.23.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-32116
- 2026-10-03 Alias added: GHSA-4g4c-mfqg-pj8r
References
More magic-wormhole vulnerabilities
- TI-2026-30737 wormhole receive, with --output pointing at an existing directory can be path-traversed CVSS 3.1LOW 3.5
Sources
- CVE-2026-32116 · CVE Program
- CVE-2026-32116 · NVD
- FIRST EPSS
- GHSA-4g4c-mfqg-pj8r · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences