CVE-2026-53980
published high CVSS 4.0 · 8.6Charmbracelet Wish 2.0.5 Path Traversal via git Middleware
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| charmbracelet | — | wish0 to < 2.0.5 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.1 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| charmbracelet | wish | 0 to < 2.0.5 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
3- Patch Commit https://github.com/charmbracelet/wish/commit/533db0daa90446b0d4ae3284877179c37e0cc48e
- wish 2.0.5 Release Notes https://github.com/charmbracelet/wish/releases/tag/v2.0.5
- VulnCheck Advisory: Charmbracelet Wish 2.0.5 Path Traversal via git Middleware https://www.vulncheck.com/advisories/charmbracelet-wish-path-traversal-via-git-middleware
Provider assertions
2VulnCheck · cna
Charmbracelet Wish 2.0.5 Path Traversal via git Middleware
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 03ead05b1a219cb7894e3adc23c131061e3d615487061064cf1a9c02f3ea5626
- Ingested
- 08 Nov 2026, 14:13:57 UTC
- Source record
- Official CVE record