/

CVE-2026-73225

Severity:

HIGH RISK

(8.1)

Path Traversal (CWE-22) in electerm File Transfer

CVE-2026-73225

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Write

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 electerm's recursive FTP and SFTP download handling allows a malicious server to influence where downloaded files are written. When server-supplied file or folder names are resolved without sufficient sanitization, content may be written outside the user's selected download directory.

Affected context

The issue occurs in electerm's file-transfer functionality when recursive downloads are performed over FTP or SFTP. It requires the client to connect to a server that can provide crafted file or directory names and for those names to be used in local path resolution without effective containment checks.

Exploit preconditions

  • Attack surface: FTP or SFTP recursive download functionality
  • Required access: The victim must connect to or download from a malicious or compromised server
  • Trigger point: Processing server-supplied file.name or folder.name values during recursive transfer
  • Why exploitation is possible: Untrusted names are incorporated into local paths without reliably preventing traversal outside the selected download directory

Why this happens

The underlying bug is insufficient validation and canonicalization of filesystem path components received from a remote server. Treating server-supplied file and folder names as safe input allows traversal sequences or other path manipulation to influence the destination path, mapping to CWE-22: Improper Limitation of a Pathname to a Restricted Directory.

Potential impact

  • Files may be written outside the intended download directory
  • Existing files may be overwritten or corrupted
  • User data or application configuration may be modified
  • Malicious content may be placed in locations that influence later application behavior
  • The incident may contribute to broader workstation compromise depending on permissions and file types

General mitigation guidance

Mitigation generally focuses on treating all remote file and directory names as untrusted and enforcing destination containment after path resolution.

Common defensive patterns include:

  • Normalize and canonicalize candidate paths before writing
  • Confirm that the resolved destination remains within the user-selected directory
  • Reject absolute paths, traversal components, and platform-specific path escapes
  • Avoid overwriting existing files by default or require explicit, protected confirmation
  • Apply least-privilege filesystem permissions to the client process
  • Keep downloaded content in a dedicated directory with restricted execution and access policies
  • Use platform-aware path handling rather than string concatenation

How teams detect issues like this

Organizations can identify related weaknesses through:

  • Static analysis rules for path joins involving network-controlled strings
  • Code review checks for missing canonicalization and directory-containment validation
  • Tests covering traversal sequences, absolute paths, alternate separators, and symbolic-link scenarios
  • Policy enforcement requiring remote filenames to pass an approved destination-boundary check
  • Runtime monitoring for downloads that create or modify files outside designated transfer directories

Automated security review tools may help flag filesystem operations that combine untrusted input with local paths.

Sources

SourceLink
github.comgithub.com/electerm/electerm/commit/deee11ffe558eaee5cad5822949ba3a7f87ae56a
github.comgithub.com/electerm/electerm/releases/tag/v3.15.120
github.comgithub.com/electerm/electerm/security/advisories/GHSA-6wh4-q387-x93j

Frequently asked

questions

It can be triggered through a malicious or compromised FTP or SFTP server, but the victim generally must connect to that server and perform a relevant recursive download.

No direct local access is necessarily required. The attacker needs control of, or influence over, the remote server and must provide crafted file or directory names.

Resolve the complete destination path and verify that it remains inside the intended download directory before creating or overwriting any file.

Treat remote filenames as untrusted input, use platform-aware path APIs, test traversal edge cases, restrict filesystem permissions, and monitor writes outside approved application directories.

Find out what's already
exploitable in your codebase.