Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as SSH user
-
ExploitRequest crafted repo path (../evil)
-
ExecutionBypass slash-count containment check
-
ImpactRead/write repositories outside configured root
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated SSH session (PR:L) to a Charmbracelet wish server (before 2.0.5) that enables the git middleware (charm.land/wish/v2, git.Middleware()). The attacker supplies a crafted repository name that defeats the forward-slash-count containment check - a single-depth '../evil' suffices, and on Windows a backslash payload such as '..\..\evil' bypasses the guard entirely - then invokes git-upload-pack, git-upload-archive, or git-receive-pack. Exploitation is limited by the need for valid SSH authentication and a server that actually mounts the git middleware; servers not using git.Middleware() are not affected. The Windows path enables deeper traversal than the POSIX path. |
| Impact | This is a credible, actionable priority rather than a CVSS-inflated non-issue, though it is not an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N, VC:H/VI:H/VA:N) scores 8.6 and is internally consistent with the description: network-reachable over SSH, low attack complexity, and low privileges (a valid authenticated SSH user), yielding high confidentiality and integrity impact via arbitrary repository read/write and no availability impact. The vuln.today decision label is 'this_week', which aligns with a serious-but-patch-driven posture rather than 'act_now'/'emergency'. No EPSS score was provided, so exploitation probability cannot be quantified. The vulnerability is not listed in CISA KEV and no verified exploit code was provided - only a VulnCheck advisory reference and the vendor patch - so this is no public exploit identified at time of analysis. The main caveat is that PR:L assumes exploitation requires an already-authenticated SSH session against a server that enables the git middleware; environments exposing wish git servers to many low-trust users face materially higher risk than single-tenant deployments. A vendor patch (v2.0.5) is available, which is the decisive mitigating factor. |
| Exploit ScenarioDerived | An attacker with valid SSH credentials to a Charmbracelet wish server that uses the git middleware connects and issues a git operation (e.g. git-upload-pack or git-receive-pack) against a crafted repository path such as '../evil', or on Windows '..\..\evil'. The flawed forward-slash-count containment check fails to confine the path, letting the attacker read or write repositories outside the configured repo root. No public, verified exploit code was supplied, though a VulnCheck advisory documents the flaw. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Path traversal in Charmbracelet Wish's git middleware before 2.0.5 allows an authenticated SSH user to escape the configured repository root and read or write repositories outside it through git-upload-pack, git-upload-archive, or git-receive-pack. The flaw is exploitable only where git.Middleware() is mounted; a crafted single-depth '../evil' path defeats the forward-slash-count containment check, and on Windows a '..\..\evil' payload bypasses the guard more deeply. No CISA KEV listing or public exploit code was identified at time of analysis, and the issue is a credible this-week priority rather than an emergency.
RemediationAI
Upgrade to Charmbracelet Wish 2.0.5 or later; the vendor patch is commit 533db0daa90446b0d4ae3284877179c37e0cc48e and the release is https://github.com/charmbracelet/wish/releases/tag/v2.0.5. The complete fix is the vendor update, and the advisory is https://www.vulncheck.com/advisories/charmbracelet-wish-path-traversal-via-git-middleware. Servers that cannot update immediately should disable git.Middleware() or remove the git-over-SSH functionality, which prevents the traversal at the cost of losing that service; deployments that do not mount the git middleware are not affected.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Charmbracelet Wish is a Go library for building SSH servers; its git middleware exposes Git operations over SSH by validating requested repository names against a configured root. CVE-2026-53980 is CWE-22 path traversal caused by a containment check that counts forward slashes rather than normalizing and resolving the path, so '../evil' on POSIX escapes one level and, on Windows, backslash sequences such as '..\..\evil' are not treated as separators by the guard and can escape further. Exploitation requires a valid SSH session and a server that actually enables git.Middleware(); deployments without that middleware are not affected. The patch in v2.0.5 (commit 533db0daa90446b0d4ae3284877179c37e0cc48e) confines repository names to the repository directory.
Know when Wish gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Authenticated SSH user over the network with low complexity (PR:L, AV:N, AC:L), no user interaction; arbitrary repo read and write give C:H/I:H, no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-53980 is a high-severity path traversal flaw in the Charmbracelet Wish SSH/git middleware (versions prior to 2.0.5). Authenticated SSH users can escape the configured Git repository root and access repositories outside it, potentially reading or writing sensitive code repositories. Only teams using Wish's git middleware are exposed, but for those that are, this undermines repository isolation and could lead to intellectual property theft or code tampering.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-118276
GHSA-6g36-8q6x-8384
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB