CVE-2026-53980

Charmbracelet Wish 2.0.5 Path Traversal via git Middleware

Published Nov 6, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Charmbracelet Wish before version 2.0.5 contains a flaw in the git middleware that allows an authenticated SSH user to supply a crafted repository path and escape the intended repository directory. By using a single‑depth traversal string such as ../evil on Unix or ..\..\evil on Windows, the forward‑slash count protection is bypassed, letting the attacker read or write files outside the configured root via git-upload-pack, git-upload-archive, or git-receive-pack. This results in unauthorized access to arbitrary repository data and potentially system files, compromising confidentiality, integrity, and the trust boundary of the application.

Affected Systems

The affected product is Charmbracelet Wish, all releases prior to 2.0.5. Systems running any of these vulnerable versions host the git middleware component (charm.land/wish/v2) and expose the path traversal when accessed by authenticated SSH clients.

Risk and Exploitability

The CVSS score of 8.6 indicates a high severity vulnerability. The EPSS score is not available, but the KEV catalog does not list this CVE, meaning no known widespread exploits are documented yet. Exploitation requires an authenticated SSH session with permission to access the git middleware; a crafted repository path is sufficient to traverse directories and read or write arbitrary files. The flaw stems from CWE-22, a path traversal weakness, making it relatively straightforward for an attacker with valid credentials.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Charmbracelet Wish to version 2.0.5 or later, which removes the vulnerable git middleware logic
  • If an upgrade cannot be applied immediately, restrict or disable the git middleware for untrusted users and enforce strict path validation in configuration
  • Review and audit SSH access controls to limit which users can issue git command requests and monitor for anomalous repository paths

Generated by OpenCVE AI on November 6, 2026 at 16:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Charmbracelet
Charmbracelet wish
Vendors & Products Charmbracelet
Charmbracelet wish
Type Values Removed Values Added
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.
Title Charmbracelet Wish 2.0.5 Path Traversal via git Middleware
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.6, 'vector': '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'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:05 PM
Reserved
Jun 11, 2026, 4:07 PM
Status
Deferred
Published
Nov 6, 2026, 3:17 PM
Modified
Nov 12, 2026, 9:36 PM