Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessUser connects to attacker-controlled SFTP server
-
DeliveryServer presents file with path-traversal filename (e.g., ../../.ssh/authorized_keys)
-
ExploitUser selects 'Edit with System Editor' in electerm
-
Executionelecterm resolves crafted filename outside temp directory
-
PersistAttacker-controlled content written to targeted filesystem path
-
ImpactOverwrite of SSH keys, shell configs, or critical files achieves persistence or disruption
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 | Three explicit conditions must all be met for exploitation to succeed: first, the victim must actively connect to an attacker-controlled SFTP server or have their legitimate SFTP session intercepted via man-in-the-middle; second, the victim must specifically invoke the 'Edit with System Editor' function on a file served by the malicious server - mere directory browsing, file downloading, or other SFTP operations do not trigger the vulnerable code path in editWithSystemEditor; third, the victim must be running electerm below version 3.15.120. The CVSS UI:R metric formally confirms that user interaction is non-negotiable for exploitation. The CVSS C:N metric indicates that file content on the victim system is not exfiltrated - the attack is write-only, limiting it to integrity and availability impacts. Exploitation is entirely ruled out for users who do not use the system editor integration feature, regardless of which servers they connect to. |
| Impact | CVSS 8.1 High is broadly justified by the arbitrary write primitive, but real-world risk is meaningfully lower than the raw score implies. AV:N reflects that the attacker operates a network-accessible SFTP server, but this is not a spray-and-pray internet-facing service - the victim must deliberately connect to the attacker's server. UI:R is the key limiting factor: passive browsing is not enough; the user must explicitly trigger 'Edit with System Editor' on a malicious file. PR:N is correct from the attacker's perspective (they control their own server) but implies no victim-side authentication weakness. No KEV listing means active exploitation at scale is unconfirmed. EPSS data was not provided in the input; exploitation probability cannot be numerically assessed. No public POC has been identified, though the patch diff is publicly visible on GitHub and the fix is simple enough to reverse-engineer. The combination of deliberate user action against a server they connected to, plus the need for that server to be malicious or intercepted, positions this as a realistic but targeted threat rather than a mass-exploitation scenario. Organizations whose users routinely connect to external or third-party SFTP servers face the highest realistic exposure. |
| Exploit ScenarioDerived | An attacker stands up a malicious SFTP server (or performs an active man-in-the-middle attack on an existing SFTP session) and presents a file with a crafted traversal filename such as ../../.ssh/authorized_keys or ../../.bashrc. When the electerm user connects and selects 'Edit with System Editor' on that file, electerm resolves the crafted filename to a path outside the temp directory and writes the attacker's file content there - enabling the attacker to inject an SSH authorized key for persistent access, overwrite shell initialization scripts for command execution on next login, or corrupt application configuration files. No public POC has been identified, but the fix commit makes the vulnerable code pattern trivially visible. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
Path traversal in electerm's SFTP client allows a malicious or man-in-the-middle SFTP server to write attacker-controlled file content to arbitrary locations on the connecting user's filesystem, bypassing the intended temporary directory confinement. All electerm releases prior to 3.15.120 are affected across all supported platforms (Linux, macOS, Windows). No public exploit code or CISA KEV listing exists at time of analysis, but the patch commit and GitHub security advisory are publicly visible, lowering the bar for independent reproduction. CVSS 8.1 reflects high integrity and availability impact gated by required user interaction with a malicious server.
RemediationAI
Upgrade electerm to version 3.15.120 or later immediately; this is the vendor-released patch confirmed by tagged GitHub release at https://github.com/electerm/electerm/releases/tag/v3.15.120 and fix commit 32ea29365762b3451b1f2fcc0ef78104384db282. If immediate upgrade is not feasible, the primary workaround is to instruct users to avoid using the 'Edit with System Editor' feature on any SFTP server that is not fully trusted and under organizational control, as this specific feature is the sole trigger for the vulnerable code path. Standard file download-and-open workflows are not affected. There is no server-side mitigation available since the vulnerability is entirely client-side. Note that restricting SFTP usage broadly to trusted hosts via firewall or network policy would prevent exploitation but may impact legitimate workflows.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in src/client/components/sftp/file-item.jsx within the editWithSystemEditor function. When a user invokes 'Edit with System Editor' on a remote file, electerm constructs a local temporary path as path.resolve(window.pre.tempDir, electerm-temp-${id}-${name}) where name is taken directly from the server-supplied filename. CWE-22 (Path Traversal / Improper Limitation of a Pathname to a Restricted Directory) is the root cause: because name is not sanitized before being passed to path.resolve, a server-controlled value containing ../ sequences or absolute path components can cause resolution to escape the intended temp directory entirely. The fix (commit 32ea293) applies sanitizeFilename() to the server-supplied name before path construction and adds a defense-in-depth confinement check verifying the resolved path begins with window.pre.tempDir + window.pre.sep, aborting with an error if not. The CPE cpe:2.3:a:electerm:electerm:*:*:*:*:*:*:*:* confirms only the electerm application itself is in scope - not the underlying OS or SFTP protocol.
Know when Electerm gets its next vulnerability
- 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:H
AV:N because attack originates from a network SFTP server; PR:N as attacker controls their own server; UI:R requires explicit system-editor action; C:N since no data is read or exfiltrated.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to 3.15.120, electerm allows a malicious SFTP server to write attacker-controlled content outside the temporary directory because the server-controlled filename name used by editWithSystemEditor in src/client/components/sftp/file-item.jsx is interpolated into path.resolve without sanitization. This issue is fixed in version 3.15.120.
Executive ViewAI
electerm SFTP client (all versions prior to 3.15.120) is vulnerable to file overwrite attacks via compromised SFTP connections, with technical disclosure now public and exploit reproduction barriers lowered. The vendor has not released a patch, creating urgent remediation pressure until patch version 3.15.120 becomes available.
No vendor-released patch identified at time of analysis. Interim mitigations include restricting all SFTP traffic to internal servers only, implementing file integrity monitoring on user systems to detect unauthorized file modifications, running electerm in restricted environments with minimal filesystem write access, and considering temporary suspension of SFTP file transfers until the patched version is available.
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.
Arbitrary local code execution in electerm (versions 3.0.6-3.8.14) allows remote attackers to execute malicious code on
Command injection in electerm's npm install script allows arbitrary command execution on macOS systems during 'npm insta
Arbitrary code execution in Electerm terminal client (≤3.8.15) allows attackers who control terminal output to execute c
Unintended internal method dispatch in electerm prior to v3.15.186 allows any authenticated WebSocket client to invoke a
Command injection in electerm prior to version 3.15.120 enables a malicious FTP or SFTP server operator to execute arbit
Path traversal in electerm's IPC widget loader allows local code execution with full process privileges when an attacker
Path traversal in electerm's RDP clipboard file transfer (prior to v3.15.120) lets a malicious RDP server write attacker
Path traversal in electerm's recursive file transfer component allows a malicious FTP or SFTP server to write attacker-c
Command injection in electerm's SFTP file editor feature allows arbitrary code execution when users edit files with mali
Arbitrary OS command execution in electerm before 5.3.15 is achievable through a completely unvalidated Electron IPC bri
electerm 3.8.15 and prior exposes environment variables containing secrets through the getConstants() IPC handler, which
EUVD-2026-56907
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB