/

CVE-2026-72903

Severity:

HIGH RISK

(8.1)

Path Traversal (CWE-22) in Tabby SFTP Windows Client

CVE-2026-72903

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Unauthorized File Creation or Overwrite

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A path traversal vulnerability in Tabby's SFTP handling allows a malicious server to supply filenames containing backslash and parent-directory components. When a Windows user downloads or edits such entries, attacker-controlled content may be created or overwrite files outside the intended directory.

Affected context

The issue occurs in Tabby deployments before version 1.0.235 when the application connects to an untrusted or compromised SFTP server from Windows. SFTP entry names are processed using POSIX-style path logic and later passed to Windows-native path functions during recursive downloads or temporary-file editing, allowing path components that are harmless in one processing context to become traversal sequences in another.

Exploit preconditions

  • Attack surface: Tabby's SFTP browsing, folder download, or remote-file editing functionality on Windows
  • Required access: A user must connect to an SFTP server controlled or influenced by the attacker
  • Trigger point: The client processes a server-provided entry name during recursive download or temporary edit preparation
  • Why exploitation is possible: Backslashes and parent-directory components are preserved during initial path handling but are interpreted as separators and traversal elements by Windows-native path APIs

Why this happens

The underlying bug is inconsistent path normalization across platform-specific components. SFTP entry names are handled with POSIX path semantics, while later processing uses Windows path joining without rejecting separators or parent-directory components supplied by the remote server. This maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, because attacker-controlled path data can escape an intended filesystem boundary.

Potential impact

  • Attacker-controlled files may be created outside the selected download directory
  • Existing files in accessible locations could be overwritten
  • Temporary edit files may be written outside the intended workspace
  • Local configuration, scripts, or user data may be modified
  • The user or other local processes may consume attacker-controlled content

General mitigation guidance

Mitigation generally focuses on treating remote filenames as untrusted data and enforcing destination boundaries after platform-specific normalization.

Common defensive patterns include:

  • Rejecting absolute paths, drive-qualified paths, alternate separators, and parent-directory components in remote entry names
  • Constructing paths with platform-aware APIs and verifying that the canonical destination remains within the selected root
  • Separating display names from filesystem paths and generating safe local names where appropriate
  • Applying the same validation to downloads, recursive directory operations, and temporary edit paths
  • Limiting local file permissions and avoiding unnecessary access to sensitive directories
  • Using secure-by-default behavior that prevents writes when boundary validation is ambiguous

How teams detect issues like this

Organizations can look for path traversal risks through:

  • Static analysis rules covering path joins that combine trusted roots with remote, archive, or network-provided names
  • Code review checks for mixed POSIX and Windows path processing
  • Tests containing backslashes, forward slashes, dot segments, absolute paths, drive prefixes, and encoded separator variants
  • Runtime telemetry for file writes escaping approved download or temporary directories
  • Policy enforcement requiring canonical containment checks before filesystem operations
  • Automated security review tools that flag unchecked path construction and cross-platform normalization inconsistencies

Sources

SourceLink
github.comgithub.com/Eugeny/tabby/commit/3a4a41431a61d41dd51d4119e60cad9bf13c3399
github.comgithub.com/Eugeny/tabby/releases/tag/v1.0.235
github.comgithub.com/Eugeny/tabby/security/advisories/GHSA-59p9-8gwf-v9v7

Frequently asked

questions

It can be triggered through an SFTP connection to a malicious or compromised server, but the victim must use Tabby's affected Windows functionality to process the server-provided entry names.

The attacker generally needs control of, or influence over, an SFTP server to which the victim connects. No direct local filesystem access to the victim is necessarily required before the affected operation is performed.

Treat every remote filename as untrusted, reject traversal and absolute-path syntax, use Windows-aware path handling, and verify that the normalized destination remains within the intended root.

Apply consistent cross-platform path validation, test filesystem operations with hostile separator and parent-directory inputs, and enforce least-privilege permissions for directories used by downloads and temporary edits.

Find out what's already
exploitable in your codebase.