Skip to main content

Wish SSH Server CVE-2026-41589

| EUVDEUVD-2026-28370 CRITICAL
Path Traversal (CWE-22)
2026-05-07 GitHub_M GHSA-xjvp-7243-rg9h
9.6
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Obtain SSH credentials
  2. Delivery
    Authenticate to Wish server
  3. Exploit
    Initiate SCP session
  4. Install
    Send crafted filename with ../ sequences
  5. C2
    Traverse beyond root directory
  6. Execute
    Write malicious files or read sensitive data
  7. Impact
    Establish persistence or exfiltrate credentials

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 valid SSH authentication credentials (PR:L from CVSS vector) to establish an authenticated session with the Wish SSH server. The SCP middleware must be explicitly imported and configured in the application code - Wish servers without the scp middleware enabled are not vulnerable. Exploitation is straightforward once authenticated (AC:L) with no user interaction required (UI:N). The attack works against default SCP middleware configurations without requiring non-standard settings. Impact is limited by filesystem permissions of the SSH server process - if running as unprivileged user, write access is constrained to directories writable by that user, though read access extends to all world-readable files. In containerized deployments, vulnerability impact depends on volume mount configuration; the scope change (S:C) becomes critical when containers have access to host filesystem paths or sensitive volumes. Network accessibility (AV:N) means any network-reachable Wish server with SCP enabled and valid credentials is exploitable remotely.

Impact

Real-world risk is HIGH but nuanced. CVSS 9.6 reflects the technical severity accurately: network-accessible (AV:N), low complexity (AC:L), requires low privileges (PR:L meaning authenticated SSH access), no user interaction (UI:N), and changed scope (S:C) indicating potential to affect resources beyond the vulnerable component. The scope change is particularly concerning in containerized deployments where escaping the configured root could mean escaping container boundaries to access host filesystems. However, multiple factors moderate real-world exploitability: (1) Requires valid SSH credentials (PR:L) - not unauthenticated remote code execution; (2) Requires SCP middleware to be actively configured and enabled, which is not default for all Wish deployments; (3) Impact limited by filesystem permissions of the SSH server process; (4) No CISA KEV listing and no public exploit code identified, suggesting this is not yet weaponized in the wild. The vulnerability is confirmed by vendor advisory GHSA-xjvp-7243-rg9h with detailed technical analysis and integration test validation. Primary concern is multi-tenant SSH services or services with untrusted authenticated users where file access controls are critical security boundaries. Organizations using Wish v1.x face higher sustained risk as no patch version is confirmed for that branch.

Exploit ScenarioDerived

An attacker with valid SSH credentials to a Wish-based SSH server establishes an authenticated session and initiates an SCP file upload operation. The attacker crafts filenames containing ../ path traversal sequences, such as ../../../../etc/cron.d/malicious, and sends them over the SCP protocol wire format. The vulnerable fileSystemHandler.prefixed() method fails to reject the traversal, allowing the attacker to write files outside the configured root directory. The attacker writes a malicious cron job to /etc/cron.d/ or overwrites SSH authorized_keys files to establish persistence, then exfiltrates sensitive configuration files or credentials via SCP download operations using similar traversal paths. In containerized environments with shared volume mounts, scope change allows the attacker to escape container filesystem boundaries and access host system files.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 07, 2026

Path traversal in Wish SSH server's SCP middleware allows authenticated attackers to read arbitrary files, write arbitrary files, and create directories outside the configured root via crafted filenames containing ../ sequences. Affects charm.land/wish/v2 versions 2.0.0 through 2.0.1 and all github.com/charmbracelet/wish v1.x versions. Vendor-released patch v2.0.1 available for v2 branch; no fix confirmed for v1 branch. CVSS 9.6 with scope change indicates potential container/host escape scenarios. No evidence of active exploitation or public POC at time of analysis.

RemediationAI

Primary remediation: upgrade charm.land/wish/v2 to version 2.0.1 or later, released 2025 and available at https://github.com/charmbracelet/wish/releases/tag/v2.0.1. The patch adds proper path validation to prevent traversal attacks in the fileSystemHandler.prefixed() method and includes regression tests. For organizations using github.com/charmbracelet/wish v1.x branch: no vendor-released patch version is confirmed at time of analysis; evaluate migration to v2.0.1 or implement compensating controls. Workarounds for environments unable to patch immediately: (1) Disable SCP middleware if not operationally required - this eliminates the attack surface entirely; (2) Run the SSH server process with minimal filesystem permissions using chroot jails, containers with read-only root filesystems, or mandatory access controls (SELinux/AppArmor) to limit traversal impact; (3) Implement network-level access controls restricting SSH access to trusted users only, though this does not eliminate risk from compromised credentials. Note that disabling SCP functionality may break workflows dependent on scp file transfers; evaluate organizational impact before deployment. Monitor application logs for suspicious SCP filenames containing ../ sequences as a detection mechanism.

Affected VersionsENISA

wish 2.0.0, < 2.0.1

Affected Packages

go charm.land/wish/v2 fix: 2.0.1
go github.com/charmbracelet/wish no fix
euvd wish_2_0_0 fix: 2.0.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Wish is an SSH server library with middleware components for Go applications. The vulnerability exists in the SCP (Secure Copy Protocol) middleware's path validation logic. The fileSystemHandler.prefixed() method uses filepath.Clean() and filepath.Join() to confine operations to a root directory, but fails to validate that the resolved path remains within bounds after cleaning. When filepath.Clean() processes ../ sequences, it resolves them to parent directories without rejecting paths that escape the root. The affected code parses SCP protocol wire format using regular expressions that accept arbitrary filenames without sanitization, then passes these directly to filesystem operations. This is a classic CWE-22 path traversal vulnerability caused by improper neutralization of special elements in pathnames. The SCP protocol itself has no built-in path validation, making server-side enforcement critical.

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 (GitHub_M) PRIMARY 9.6 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
SUSE CRITICAL

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

Wish is an SSH server with defaults and a collection of middlewares. From version 2.0.0 to before version 2.0.1, the SCP middleware in charm.land/wish/v2 is vulnerable to path traversal attacks. A malicious SCP client can read arbitrary files from the server, write arbitrary files to the server, and create directories outside the configured root directory by sending crafted filenames containing ../ sequences over the SCP protocol. This issue has been patched in version 2.0.1.

Executive ViewAI

Why It Matters

A critical path traversal vulnerability in Charmbracelet Wish SSH server (versions 1.x and 2.0.0-2.0.1) allows authenticated users to read, write, and create files outside configured boundaries, potentially enabling container escape or unauthorized data access on systems using this component. Organizations deploying Wish as an SSH middleware must immediately inventory affected versions and apply patches to prevent privilege escalation and lateral movement by insider threats or compromised accounts.

Business Impact: High
Compensating Controls

Apply vendor patch. For systems unable to patch immediately: implement network-level access controls restricting SSH connections to Wish servers to trusted IP ranges; configure filesystem permissions to deny write access on parent directories of the SCP root; enable SSH session logging and alert on SCP commands containing path traversal sequences (../).

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +48
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.

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

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