Charmbracelet Wish 2.0.5 Path Traversal via git Middleware
- State
- Published
- Severity
- 8.6 High
- Published
- Nov 6, 2026
- Updated
- Nov 8, 2026
- Reserved
- Jun 11, 2026
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.
| Product | Versions |
|---|---|
| wish charmbracelet | before 2.0.5 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.6 High | VulnCheck | |
| 3.1 | 8.1 High | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- wish 2.0.5 Release NotesRelease Notes
- Patch CommitPatch
- VulnCheck Advisory: Charmbracelet Wish 2.0.5 Path Traversal via git MiddlewareThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.