{"id":"CVE-2026-53980","published":"2026-11-06T15:17:22.100","lastModified":"2026-11-06T18:18:14.510","description":"Charmbracelet wish before 2.0.5 contains a path traversal vulnerability in the git middleware (charm.land/wish/v2) that allows authenticated SSH users to escape the configured repository directory by supplying crafted repo paths that bypass a flawed forward-slash-count containment check in git.Middleware(). Attackers can use a single-depth path ../evil, or on Windows a payload ..\\..\\evil that defeats the slash-count guard entirely, to read or write arbitrary repositories outside the intended root via git-upload-pack, git-upload-archive, or git-receive-pack.","cvssScore":8.1,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","cwes":["CWE-22"],"vendors":[],"products":[],"references":[{"url":"https://github.com/charmbracelet/wish/commit/533db0daa90446b0d4ae3284877179c37e0cc48e","tags":[]},{"url":"https://github.com/charmbracelet/wish/releases/tag/v2.0.5","tags":[]},{"url":"https://www.vulncheck.com/advisories/charmbracelet-wish-path-traversal-via-git-middleware","tags":[]}],"exploitRefs":[{"url":"https://github.com/charmbracelet/wish/commit/533db0daa90446b0d4ae3284877179c37e0cc48e","tags":[]},{"url":"https://github.com/charmbracelet/wish/releases/tag/v2.0.5","tags":[]}],"hasPoc":true,"ai":null}