CVE-2026-53980Charmbracelet Wish 2.0.5 Path Traversal via git Middleware
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- charmbracelet wish: affected: before 2.0.5; fixed in
2.0.5
Vendor advisories:
- https://github.com/charmbracelet/wish/releases/tag/v2.0.5 (release-notes)
- https://github.com/charmbracelet/wish/commit/533db0daa90446b0d4ae3284877179c37e0cc48e (patch)
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.