Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure victim to malicious SSH server
-
DeliveryInitiate Zmodem/Trzsz transfer with ../ filename
-
ExploitVictim accepts transfer and picks directory
-
ExecutionUnsanitized path.join resolves outside directory
-
ImpactWrite/overwrite arbitrary file as user
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 | Exploitation requires that the victim (1) connect electerm to an attacker-controlled or compromised SSH server or remote shell, (2) that server initiate a Zmodem (sz/rz) or Trzsz (trz/tsz) file transfer, and (3) the victim actively accept the incoming transfer and select a download directory - this user interaction (UI:R) is mandatory. The attacker must supply a filename containing traversal sequences (e.g., ../../.bashrc). Limiting factors: writes are constrained to paths the electerm process account can access (subject to process permissions), it is a write/overwrite primitive with no direct read/confidentiality impact, and the victim must not cancel the prompt. There is no default-configuration remote-unauthenticated path - the victim's outbound connection and transfer acceptance are prerequisites. |
| Impact | The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L, base 7.1) is internally consistent with the description: network vector, no privileges, but mandatory user interaction (the victim must accept the transfer and pick a directory), high integrity impact (arbitrary file overwrite) and low availability impact, with no confidentiality loss since this is a write-only primitive. The UI:R requirement is the dominant limiting factor and materially lowers real-world risk versus a fully unauthenticated drive-by. No EPSS score was supplied, and the CVE is not in CISA KEV, so there is no evidence of active exploitation; no public POC is referenced either, only a fix commit. Net assessment: a genuine, patch-worthy integrity flaw for users who connect to untrusted SSH endpoints, but not a mass-exploitation emergency - the attacker must lure a victim to a malicious server and get them to accept a file transfer. Missing signals to note: no EPSS and no SSVC decision data were provided, so automatability and exploitation-maturity cannot be independently scored here. |
| Exploit ScenarioDerived | An attacker who controls or has compromised an SSH server waits for a victim to connect with electerm, then initiates a Zmodem or Trzsz push with a crafted filename such as ../../.bashrc or ../escaped.txt. When the victim accepts the transfer and selects any download directory, electerm resolves the traversal and writes the file outside that directory, letting the attacker plant or overwrite a sensitive file (e.g., a shell startup script) within the user's permissions. No public POC is referenced, and the attack hinges on the victim accepting the transfer (UI:R). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 02, 2026
Arbitrary file write in electerm via path traversal in its Zmodem and Trzsz file-download handlers lets a malicious SSH server or remote shell overwrite files anywhere the client process can write. When a user accepts an incoming Zmodem (sz/rz) or Trzsz (trz/tsz) transfer, the attacker-supplied filename is passed unsanitized into path.join() with the chosen download directory, so a name like ../../.bashrc escapes that directory. No public exploit identified at time of analysis, and it is not listed in CISA KEV; exploitation requires the victim to initiate a connection to a hostile server and accept the transfer.
RemediationAI
Upgrade to the electerm release that includes fix commit fde153d677a170c5816368f6586647f3af4ef284 (Upstream fix available as a commit; a specific tagged patched version is not independently confirmed from the provided data - consult the advisory at https://github.com/electerm/electerm/security/advisories/GHSA-38j7-23hf-9mhc for the exact release). Until you can upgrade, apply the vendor workarounds: connect only to trusted SSH servers, and reject or cancel any incoming Zmodem or Trzsz transfer originating from an untrusted source. As a stronger compensating control, avoid using the sz/rz and trz/tsz commands entirely on servers you do not fully control, which eliminates the receive path at the cost of losing in-terminal file download on those sessions. Where feasible, run electerm under a least-privileged OS account so any successful traversal is confined to files that account can write, limiting the blast radius of an overwrite.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
electerm is a cross-platform Electron/Node.js terminal and SSH/SFTP client distributed as the npm package electerm. Zmodem and Trzsz are terminal file-transfer protocols that let a remote shell push files to the local client; electerm implements the receive side in src/app/server/zmodem.js (prepareReceiveFile() at line 736) and src/app/server/trzsz.js (getUniqueFilePath() at line 559, the openSaveFile() callback, and the savedFilePaths mapping). The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory): the remote-controlled filename is concatenated to the destination directory with path.join() without validating, normalizing, or stripping traversal sequences (../), so the resolved path can point outside the intended download folder. Because the filename originates entirely from the remote peer, the trust boundary between the untrusted server and the local filesystem is crossed at the point of the join.
Know when the next one hits your stack
- 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
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
Remote malicious server needs no client-side privileges (PR:N) but the victim must accept the transfer (UI:R); arbitrary file overwrite gives I:H with minor A:L and no read, so C:N.
Primary rating from Vendor (https://github.com/electerm/electerm).
CVSS VectorVendor: https://github.com/electerm/electerm
DescriptionCVE.org
Impact
A path traversal vulnerability exists in the Zmodem and Trzsz file download handlers in electerm. When receiving files via Zmodem or Trzsz protocols, electerm uses the remote-supplied filename directly in path.join() with the user-selected download directory without sanitization.
A malicious SSH server or remote shell process can send a specially crafted filename such as ../escaped.txt to escape the user-selected download directory and write files to arbitrary locations on the user's filesystem, subject to process permissions.
Attack scenario:
- User connects to a malicious SSH server
- Attacker initiates a Zmodem or Trzsz file transfer
- Attacker supplies a traversal filename (e.g.,
../../.bashrc,../escaped.txt) - User accepts the transfer and selects a download directory
- File is written outside the selected directory, potentially overwriting sensitive files
Affected components:
src/app/server/zmodem.js-prepareReceiveFile()at line 736src/app/server/trzsz.js-getUniqueFilePath()at line 559,openSaveFile()callback, andsavedFilePathsmapping
Patches
- https://github.com/electerm/electerm/commit/fde153d677a170c5816368f6586647f3af4ef284
Workarounds
If upgrading is not immediately possible, users can mitigate this vulnerability by:
- Only connecting to trusted SSH servers
- Rejecting or canceling any incoming Zmodem or Trzsz file transfers from untrusted sources
- Avoiding the use of Zmodem (
sz/rz) and Trzsz (trz/tsz) commands on untrusted servers
Executive ViewAI
electerm, an SSH client used for remote system administration, contains a path traversal vulnerability allowing attackers to overwrite arbitrary files on user systems; no public exploit identified at time of analysis. Exploitation occurs when users accept incoming file transfers from malicious SSH servers, potentially compromising critical system or application files. This risk is particularly acute for organizations with remote workers or teams managing multiple systems, where user interaction with untrusted endpoints is difficult to prevent entirely.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-62421
GHSA-38j7-23hf-9mhc
NVD
CVE.org
EPSS
Exploit-DB