Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconConnect to attacker-controlled host
-
DeliveryInject ANSI escape with malicious URL
-
ExploitRender clickable hyperlink in terminal
-
InstallVictim clicks link
-
C2shell.openExternal invoked
-
ExecuteOS executes protocol handler
-
ImpactArbitrary code runs in user context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | Attacker must control content rendered in the victim's Electerm terminal session. This occurs when: (1) victim connects to attacker-operated or attacker-compromised SSH/Telnet/serial/RDP/VNC/Spice/FTP server, (2) legitimate remote host is compromised and injects malicious ANSI escape sequences into terminal output (command output, login banners, shell prompts), or (3) malicious Electerm plugin installed that renders attacker-controlled hyperlinks. Victim must click the displayed hyperlink - passive terminal usage insufficient. Does not require authentication to the Electerm application itself (CVSS PR:N refers to network service access). Exploitation limited by victim's willingness to click links and OS-level restrictions on shell.openExternal behavior (some OSes prompt user confirmation for certain protocol schemes, though many do not). Default Electerm configuration with hyperlink rendering enabled is vulnerable. |
| Impact | CVSS 9.6 (Critical) accurately reflects the post-exploitation impact - full system compromise via arbitrary code execution - but overstates immediate real-world risk due to the UI:R (user interaction required) constraint. Victims must actively click terminal-rendered hyperlinks, creating a social engineering barrier. However, legitimate workflows often involve clicking URLs in terminal output (CI/CD logs, deployment scripts, SSH session banners), making this exploitable in real scenarios. The S:C (scope change) designation is justified: breaking from terminal application context to OS shell execution represents a significant privilege escalation. No EPSS score or KEV status provided in input data - absence suggests no confirmed widespread exploitation at time of analysis, though the GitHub Security Advisory indicates vendor awareness. The AV:N/AC:L combination means any remote service providing terminal content (SSH servers, Telnet hosts, even malicious websites if RDP/VNC sessions display attacker-controlled text) can attempt exploitation with low technical barriers. Primary risk factors: (1) Electerm targets sysadmins/DevOps users who routinely connect to multiple remote hosts, expanding attacker surface; (2) No patch available, forcing reliance on behavioral mitigations; (3) Attack succeeds with single click, no cryptographic bypass or memory corruption required. This is a real priority for Electerm users despite requiring user interaction. |
| Exploit ScenarioDerived | An administrator connects to a compromised SSH server or malicious RDP host using Electerm. The remote system sends terminal escape sequences embedding a hyperlink with 'file:///etc/passwd' or a custom protocol handler invoking system commands (e.g., 'ms-msdt:' on Windows for Follina-style execution). The link appears in terminal output styled as legitimate operational text (log URL, documentation link). When the victim clicks the hyperlink to investigate, Electerm invokes shell.openExternal without validation, causing the OS to open the local file or execute the registered protocol handler. The attacker achieves arbitrary file read or code execution in the victim's user context. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
Arbitrary code execution in Electerm terminal client (≤3.8.15) allows attackers who control terminal output to execute commands or access local files when victims click hyperlinks. The unvalidated shell.openExternal call accepts any protocol scheme, enabling 'file://' URIs for local file access or platform-specific handlers for code execution. No vendor-released patch identified at time of analysis. GitHub Security Advisory GHSA-fwf6-j56g-m97c confirms the vulnerability. CVSS 9.6 reflects high impact across confidentiality, integrity, and availability with scope change, though exploitation requires user interaction (clicking a malicious link).
RemediationAI
No vendor-released patch identified at time of analysis per the description stating 'no publicly available patches.' Monitor GitHub Security Advisory GHSA-fwf6-j56g-m97c for updates. Immediate compensating controls: (1) Disable hyperlink rendering in Electerm terminal settings if available - prevents clickable links entirely, eliminating attack surface at cost of usability. (2) Train users not to click terminal-rendered URLs; manually copy/paste into browser address bar after inspecting protocol scheme. This introduces friction in legitimate workflows where terminal links provide operational value. (3) Restrict Electerm usage to trusted remote hosts only; treat any SSH server, RDP gateway, or VNC host as potential attack vector. Side effect: limits Electerm's utility for ad-hoc remote access. (4) Run Electerm in sandboxed environment (containerized, VM, or restricted user account) to contain shell.openExternal execution scope; does not prevent exploitation but limits lateral movement. (5) Network-level controls: monitor outbound connections from Electerm process for unexpected protocols or destinations. Consult the GitHub advisory for potential upstream fixes or recommended settings changes as vendor response evolves.
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 an Electron-based terminal emulator supporting SSH, SFTP, Telnet, RDP, VNC, and serial connections. The vulnerability stems from CWE-88 (Improper Neutralization of Argument Delimiters) in the hyperlink handling code. When terminal escape sequences render clickable URLs, Electerm invokes Electron's shell.openExternal API without protocol whitelisting. This API delegates to the operating system's default handler for any URI scheme - 'http:', 'file:', custom protocol handlers, or executable wrappers. An attacker controlling terminal output (through compromised SSH servers, malicious remote hosts, or plugins) can inject ANSI escape sequences with crafted URLs. The CVSS vector AV:N indicates network attack vector because remote servers generate terminal content; S:C (scope change) reflects breaking out of the application context into OS-level execution.
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:C/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. In versions 3.8.15 and prior, Electerm's terminal hyperlink handler passes any URL clicked in the terminal directly to shell.openExternal without any protocol validation. An attacker who controls terminal output (e.g., via a malicious SSH server, compromised remote host, or malicious plugin rendering terminal content) can thus achieve arbitrary code execution or local file access on the victim's machine, requiring only that the victim clicks a displayed link. At time of publication, there are no publicly available patches.
Executive ViewAI
Electerm terminal client versions 3.8.15 and earlier contain a critical arbitrary code execution vulnerability (CVSS 9.6) exploitable through malicious hyperlinks in terminal output. Attackers can execute arbitrary commands or access sensitive local files when users click links, potentially compromising systems used for infrastructure management and privileged access. This poses significant risk to organizations using Electerm for SSH sessions or remote administration, as the attack vector is user-initiated but requires no additional authentication.
Pending vendor patch release: (1) Disable Electerm or restrict to trusted networks only; (2) Educate users to avoid clicking terminal output hyperlinks from untrusted sources; (3) Run Electerm with minimal user privileges and within sandboxed environments where possible; (4) Monitor for suspicious child process spawning from Electerm; (5) Consider alternative terminal clients without unvalidated URI handling as interim replacement.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Related Vulnerabilities in electerm Remote Code Execution
View all 5Unintended 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
OS command injection in Electerm on Windows up to and including 5.8.0 lets a file or folder name carrying a typographic
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
Path traversal in electerm's SFTP client allows a malicious or man-in-the-middle SFTP server to write attacker-controlle
Electerm through 5.8.1 ships a built-in MCP Server widget that binds an Express HTTP listener to 127.0.0.1:30837 and, by
Arbitrary OS command execution in electerm before 5.3.15 is achievable through a completely unvalidated Electron IPC bri
EUVD-2026-28513
GHSA-fwf6-j56g-m97c
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB