/

CVE-2026-120322

Severity:

CRITICAL RISK

(9.9)

Path Traversal (CWE-22) in Termix-SSH File Manager

CVE-2026-120322

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Unauthorized file write or overwrite

Severity:

CRITICAL RISK

(9.9)

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

Termix-SSH's file transfer endpoint is vulnerable to path traversal when it processes the destPath argument. A remotely initiated request may cause files to be written outside the intended destination, subject to the endpoint's access controls and the permissions of the transfer process.

Affected context

The issue affects processing associated with /plugin-api/file-manager/transferToHost in Termix versions up to 2.9.2. The destination path used by the transfer operation is the relevant input; the risk depends on whether an attacker can reach the endpoint and what access the transfer process has on the destination host. The vendor description notes that the affected shortcut was removed in the standalone File Manager plugin v1.0.0 and in core v26.10.0.

Exploit preconditions

  • Attack surface: The file-transfer API endpoint, which may be reachable remotely.
  • Required access: The description does not establish whether authentication is required; applicable access controls determine who can invoke the endpoint.
  • Trigger point: Processing of the destPath argument by transferToHost.
  • Why exploitation is possible: If the destination path is not constrained to an authorized base directory, traversal components may direct writes outside the intended location.

Why this happens

The underlying bug is insufficient validation or canonicalization of a user-influenced destination path. When a file operation accepts a path without reliably restricting its resolved location to an authorized directory, traversal can escape the intended destination boundary. This is a path traversal issue mapped to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

Potential impact

  • An attacker may write files outside the intended transfer directory.
  • Files accessible to the transfer process could be overwritten or altered.
  • Changes to sensitive files could disrupt services or affect application behavior.
  • The impact may extend to a destination host if the transfer process has broad write permissions.

General mitigation guidance

Defensive approaches focus on confining file operations to explicitly authorized destinations:

  • Resolve and canonicalize destination paths, then verify they remain within an approved base directory.
  • Prefer APIs that accept a trusted directory handle and a constrained relative path over unrestricted path strings.
  • Apply strict path validation and reject unexpected absolute paths or traversal components.
  • Limit the transfer process to the minimum filesystem permissions needed, and reduce trust in caller-supplied paths.
  • Use secure-by-default transfer behavior that enforces destination boundaries consistently.

How teams detect issues like this

  • Use static analysis to identify file-write operations that consume request-controlled paths without containment checks.
  • Review transfer handlers for canonicalization and base-directory enforcement, including checks performed before and after path resolution.
  • Monitor for transfer requests whose resolved destinations fall outside approved directories, and audit unexpected file modifications.
  • Enforce API policies that restrict who can invoke file-transfer operations and which destinations are permitted.
  • Automated code review tools may help flag risky path construction and file-write patterns.

Sources

SourceLink
github.comgithub.com/0xGenesi/CVE/blob/main/Termix_FileManager_transferToHost_Arbitrary_File_Write.md
vuldb.comvuldb.com/cve/CVE-2026-120322
vuldb.comvuldb.com/submit/1015028
vuldb.comvuldb.com/vuln/429654
vuldb.comvuldb.com/vuln/429654/cti

Frequently asked

questions

The issue is in a remotely initiable API endpoint, and the description reports a publicly available exploit. Actual exploitability depends on endpoint reachability and applicable access controls.

The available description does not specify authentication requirements. Deployment configuration and endpoint access policies determine who can invoke the transfer operation.

Constrain every resolved destination to an explicitly authorized directory, and ensure the transfer process cannot write beyond the locations it needs.

Treat caller-supplied paths as untrusted, use safe path-resolution APIs, enforce destination allowlists, and test that traversal attempts cannot escape the permitted directory.

Find out what's already
exploitable in your codebase.