Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-41589: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in charmbracelet wish

0
Critical
VulnerabilityCVE-2026-41589cvecve-2026-41589cwe-22
Published: Thu May 07 2026 (05/07/2026, 13:17:58 UTC)
Source: CVE Database V5
Vendor/Project: charmbracelet
Product: wish

Description

CVE-2026-41589 is a critical path traversal vulnerability in the SCP middleware of the charmbracelet wish SSH server versions 2. 0. 0 up to but not including 2. 0. 1. This flaw allows a malicious SCP client to read, write, and create files or directories outside the intended root directory by using crafted filenames with .. / sequences. The vulnerability has been patched in version 2. 0. 1.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/07/2026, 15:36:29 UTC

Technical Analysis

The SCP middleware in charmbracelet wish versions from 2.0.0 to before 2.0.1 is vulnerable to CWE-22 path traversal. An attacker controlling an SCP client can exploit this by sending specially crafted filenames containing directory traversal sequences (../) to escape the configured root directory. This enables unauthorized reading and writing of arbitrary files and creation of directories outside the restricted path. The issue was addressed and fixed in version 2.0.1 of wish.

Potential Impact

Successful exploitation allows an attacker with SCP client access and at least limited privileges to read sensitive files, write arbitrary files, and create directories outside the intended root directory on the server. This can lead to confidentiality and integrity breaches. The vulnerability does not affect availability. There are no known exploits in the wild at this time.

Mitigation Recommendations

Upgrade charmbracelet wish to version 2.0.1 or later, where this path traversal vulnerability has been patched. Since this is a software vulnerability with an available fixed version, applying the official update is the recommended remediation. Patch status is confirmed by the vendor advisory stating the fix is included in version 2.0.1.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-21T14:15:21.960Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69fcadf8cbff5d8610046f7d

Added to database: 5/7/2026, 3:21:28 PM

Last enriched: 5/7/2026, 3:36:29 PM

Last updated: 5/7/2026, 4:21:52 PM

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses