{"id":"CVE-2026-41589","published":"2026-05-07T13:17:58Z","modified":"2026-05-07T14:41:57Z","title":"Wish has SCP Path Traversal that allows arbitrary file read/write","vendor":"charmbracelet","product":"wish","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.6,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00393,"percentile":0.34379,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/charmbracelet/wish/security/advisories/GHSA-xjvp-7243-rg9h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/charmbracelet/wish/releases/tag/v2.0.1","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":6.88},{"name":"CVSS severity","points":6.72}]},"vendorSlug":"charmbracelet","affectedVersions":[{"vendor":"charmbracelet","product":"wish","versions":[">= 2.0.0, < 2.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-07T14:38:51.636811Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"charm.land/wish/v2","vulnerableRanges":["<2.0.1"],"patched":["2.0.1"],"from":["GHSA-xjvp-7243-rg9h","GO-2026-5762"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/charmbracelet/wish","vulnerableRanges":["<=1.4.7"],"patched":[],"from":["GHSA-xjvp-7243-rg9h"],"provenance":"source"}],"summary":{"text":"The Wish SSH server's SCP middleware (charm.land/wish/v2, versions from 2.0.0 before 2.0.1) fails to restrict pathnames to the configured root directory, so crafted filenames are not properly confined. A remote, low-privileged SCP client that has authenticated to the server can exploit this by sending filenames containing ../ sequences to read or write arbitrary files and create directories outside the root directory, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:28Z"},"euvd":{"id":"EUVD-2026-28370","exploited":false,"provenance":"source"}}