# CVE-2026-41589: Wish has SCP Path Traversal that allows arbitrary file read/write

- Severity: Critical 9.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-18T01:09:46.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-xjvp-7243-rg9h, GO-2026-5762
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- charmbracelet wish: >= 2.0.0, < 2.0.1
- charm.land/wish/v2 (Go): before 2.0.1
- github.com/charmbracelet/wish (Go): up to 1.4.7
- charm wish: 2.0.0

## Every score

- GitHub_M: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`

## References

- <https://github.com/charmbracelet/wish/security/advisories/GHSA-xjvp-7243-rg9h> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/charmbracelet/wish/releases/tag/v2.0.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41589> (advisory)
- <https://github.com/charmbracelet/wish> (package)

## Sources

- CVE List: [CVE-2026-41589](https://www.cve.org/CVERecord?id=CVE-2026-41589), CVE Terms of Use, modified 2026-05-07
- GitHub Advisory Database: [GHSA-xjvp-7243-rg9h](https://github.com/advisories/GHSA-xjvp-7243-rg9h), CC-BY-4.0, modified 2026-07-07
- Go Vulnerability Database: [GO-2026-5762](https://pkg.go.dev/vuln/GO-2026-5762), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-41589](https://nvd.nist.gov/vuln/detail/CVE-2026-41589), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41589 · Whole record: https://cve.day/CVE-2026-41589.json · Rebuilt by cve.day 2026-11-25T22:59:20.879Z
