{"id":"CVE-2026-53980","summary":"Charmbracelet Wish 2.0.5 Path Traversal via git Middleware","details":"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.","modified":"2026-11-14T02:30:42.102479579Z","published":"2026-11-06T14:59:40.355Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53980.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53980.json"},{"type":"ADVISORY","url":"https://github.com/charmbracelet/wish/releases/tag/v2.0.5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53980"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/charmbracelet-wish-path-traversal-via-git-middleware"},{"type":"FIX","url":"https://github.com/charmbracelet/wish/commit/533db0daa90446b0d4ae3284877179c37e0cc48e"},{"type":"PACKAGE","url":"https://github.com/charmbracelet/wish"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/charmbracelet/wish","events":[{"introduced":"0"},{"fixed":"2af05484795152f53d9ad10b5be5748a4bec3c95"},{"fixed":"533db0daa90446b0d4ae3284877179c37e0cc48e"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"2.0.5"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"original_tag":"v2.0.5","range":[{"fixed":"2af05484795152f53d9ad10b5be5748a4bec3c95"}],"source":"REFERENCES_TAG"},{"range":[{"fixed":"533db0daa90446b0d4ae3284877179c37e0cc48e"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v2.0.4","v2.0.3","v2.0.2","v2.0.1","v2.0.0","v1.4.7","v1.4.6","v1.4.5","v1.4.4","v1.4.3","v1.4.2","v1.4.1","v1.4.0","v1.3.2","v1.3.1","v1.3.0","v1.2.0","v1.1.1","v1.1.0","v1.0.0","v0.7.0","v0.6.0","v0.5.0","v0.4.0","v0.3.1","v0.3.0","v0.2.1","v0.2.0","v0.1.2","v0.1.1","v0.1.0","v0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53980.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"}]}