{"id":"CVE-2026-53980","state":"PUBLISHED","title":"Charmbracelet Wish 2.0.5 Path Traversal via git Middleware","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.","publishedAt":"2026-11-06T14:59:40.355Z","updatedAt":"2026-11-08T14:05:12.952Z","severity":{"score":8.6,"label":"High","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["charmbracelet wish"],"affected":[{"vendor":"charmbracelet","product":"wish","packageURL":"pkg:github/charmbracelet/wish","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.0.5","versionType":"semver"}],"repo":"https://github.com/charmbracelet/wish"}],"references":["https://github.com/charmbracelet/wish/releases/tag/v2.0.5","https://github.com/charmbracelet/wish/commit/533db0daa90446b0d4ae3284877179c37e0cc48e","https://www.vulncheck.com/advisories/charmbracelet-wish-path-traversal-via-git-middleware"],"weaknesses":["CWE-22"],"ingestedAt":"2026-11-08T14:24:04.751Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/53xxx/CVE-2026-53980.json","commit":"0db42540ff1da71de67d5acbc2952ca4e4bce0c2","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-53980","state":"PUBLISHED","datePublished":"2026-11-06T14:59:40.355Z","dateUpdated":"2026-11-08T14:05:12.952Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-06-11T16:07:13.000Z"},"containers":{"cna":{"title":"Charmbracelet Wish 2.0.5 Path Traversal via git Middleware","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"charmbracelet","product":"wish","packageURL":"pkg:github/charmbracelet/wish","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.0.5","versionType":"semver"}],"repo":"https://github.com/charmbracelet/wish"}],"references":[{"url":"https://github.com/charmbracelet/wish/releases/tag/v2.0.5","name":"wish 2.0.5 Release Notes","tags":["release-notes"]},{"url":"https://github.com/charmbracelet/wish/commit/533db0daa90446b0d4ae3284877179c37e0cc48e","name":"Patch Commit","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/charmbracelet-wish-path-traversal-via-git-middleware","name":"VulnCheck Advisory: Charmbracelet Wish 2.0.5 Path Traversal via git Middleware","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":8.6,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE","version":"3.1","baseSeverity":"HIGH","baseScore":8.1,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-08T14:05:12.952Z"},"datePublic":"2026-09-10T00:00:00.000Z","tags":["x_open-source"],"credits":[{"lang":"en","value":"Katriel Moses","type":"finder"}],"x_generator":{"engine":"vulncheck"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-06T17:30:54.304000Z","id":"CVE-2026-53980","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-06T17:31:14.062Z"}}]}}}