Skip to main content

Charmbracelet Wish EUVDEUVD-2026-118276

| CVE-2026-53980 HIGH
Path Traversal (CWE-22)
2026-11-06 VulnCheck GHSA-6g36-8q6x-8384
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as SSH user
  2. Exploit
    Request crafted repo path (../evil)
  3. Execution
    Bypass slash-count containment check
  4. Impact
    Read/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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

wish 0 <2.0.5

Affected Packages

euvd wish fix: 2.0.5

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

Vendor (VulnCheck) PRIMARY 8.6 HIGH
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
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 63% exploitable
Prevalence
Low
niche Go library for building SSH apps, limited production footprint
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy