CVE-2026-41589 Wish has SCP Path Traversal that allows arbitrary file read/write
A malicious SCP client can read or write arbitrary files on the server via path traversal in the Wish SSH library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-41589?
CVE-2026-41589 is a critical path traversal vulnerability in charmbracelet wish, published on 7 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Wish is an SSH server with defaults and a collection of middlewares. From version 2.0.0 to before version 2.0.1, the SCP middleware in charm.land/wish/v2 is vulnerable to path traversal attacks. A malicious SCP client can read arbitrary files from the server, write arbitrary files to the server, and create directories outside the configured root directory by sending crafted filenames containing ../ sequences over the SCP protocol. This issue has been patched in version 2.0.1.
Weakness: CWE-22
Which versions are affected by CVE-2026-41589?
5 open source packages ship an affected version, including github.com/charmbracelet/wish and charm.land/wish/v2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/charmbracelet/wish Go | All versions to 1.4.7 | None |
github.com/charmbracelet/wish Go | All versions to 1.4.7 | None |
charm.land/wish/v2 Go | All versions | 2.0.1 |
charm.land/wish/v2 Go | All versions | 2.0.1 |
charm.land/wish/v2 Go | All versions | 2.0.1 |
Products include Charm Wish.
How do I fix CVE-2026-41589?
Apply the vendor's patch.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-41589 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41589 exists.
Sources
Also known as GHSA-xjvp-7243-rg9h, GO-2026-5762.