Skip to main content

electerm EUVDEUVD-2026-62421

| CVE-2026-49253 HIGH
Path Traversal (CWE-22)
2026-07-02 https://github.com/electerm/electerm GHSA-38j7-23hf-9mhc
7.1
CVSS 3.1 · Vendor: https://github.com/electerm/electerm
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Lure victim to malicious SSH server
  2. Delivery
    Initiate Zmodem/Trzsz transfer with ../ filename
  3. Exploit
    Victim accepts transfer and picks directory
  4. Execution
    Unsanitized path.join resolves outside directory
  5. Impact
    Write/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).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

electerm < 3.11.11

Affected Packages

npm electerm fix: 3.11.11

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

Vendor (https://github.com/electerm/electerm) PRIMARY 7.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
vuln.today AI 7.1 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/electerm/electerm).

CVSS VectorVendor: https://github.com/electerm/electerm

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low

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:

  1. User connects to a malicious SSH server
  2. Attacker initiates a Zmodem or Trzsz file transfer
  3. Attacker supplies a traversal filename (e.g., ../../.bashrc, ../escaped.txt)
  4. User accepts the transfer and selects a download directory
  5. File is written outside the selected directory, potentially overwriting sensitive files

Affected components:

  • src/app/server/zmodem.js - prepareReceiveFile() at line 736
  • src/app/server/trzsz.js - getUniqueFilePath() at line 559, openSaveFile() callback, and savedFilePaths mapping

Patches

  • https://github.com/electerm/electerm/commit/fde153d677a170c5816368f6586647f3af4ef284

Workarounds

If upgrading is not immediately possible, users can mitigate this vulnerability by:

  1. Only connecting to trusted SSH servers
  2. Rejecting or canceling any incoming Zmodem or Trzsz file transfers from untrusted sources
  3. Avoiding the use of Zmodem (sz/rz) and Trzsz (trz/tsz) commands on untrusted servers

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Low
niche open-source terminal client, limited enterprise deployment footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy