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.
Published: 2026-11-06
Score: 8.6 High
EPSS: n/a
KEV: No
Impact: Path Traversal
Action: Immediate Patch
AI Analysis

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.

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

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 yet.

History

Fri, 06 Nov 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Charmbracelet
Charmbracelet wish
Vendors & Products Charmbracelet
Charmbracelet wish

Fri, 06 Nov 2026 15:15:00 +0000

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'}


Subscriptions

Charmbracelet Wish
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-06T17:31:14.062Z

Reserved: 2026-06-11T16:07:13.000Z

Link: CVE-2026-53980

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-06T15:17:22.100

Modified: 2026-11-06T18:18:14.510

Link: CVE-2026-53980

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T17:00:10Z

Weaknesses
  • CWE-22

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