Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConnect electerm to malicious SSH server
-
DeliveryServer injects script into terminal renderer
-
ExploitRenderer script calls unvalidated runGlobalAsync IPC
-
ExecutionMain process invokes openFileWithEditor with attacker arguments
-
ImpactArbitrary OS command executes as logged-in user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Dangerous method exposure prevention
|
| Exploitation Conditions | Exploitation requires that an attacker first achieve renderer-side script execution within the electerm application window. The most realistic paths are: (1) a malicious SSH/SFTP server that injects script via terminal output or rendered HTML, or (2) an attacker-controlled webview or popup rendered within electerm. The vulnerability itself then requires no system privileges and no further user interaction - the IPC bridge is invoked programmatically. Limiting factors include: the renderer compromise prerequisite (not trivial), the local attack vector (AV:L), and the additional attack requirement (AT:P) encoded in the CVSS 4.0 vector. Direct network-to-RCE without a renderer foothold is not possible in this vulnerability's architecture. |
| Impact | The provided CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H) reflects moderate-to-high complexity: local attack vector with an additional attack requirement (AT:P), meaning renderer-side script execution is a prerequisite. This appropriately captures that the vulnerability is not directly reachable over the network - an attacker must first get code running in the renderer process, typically through a malicious SSH server sending crafted terminal output or an XSS condition in rendered content. Despite the 7.5 CVSS score and local attack vector, the potential impact is significant: successful exploitation escalates from the sandboxed renderer to the fully privileged main process, enabling arbitrary command execution as the logged-in user. EPSS data is absent from the provided intelligence; KEV status is negative. No POC is published, though the patch diff makes the pre-fix attack surface unambiguous. Real-world priority is moderate: electerm is a niche terminal emulator, the prerequisite (renderer compromise) is non-trivial, but users who connect to untrusted SSH servers face a realistic attack path if the terminal renders injected content. |
| Exploit ScenarioDerived | A threat actor operates a malicious SSH server that injects crafted ANSI sequences or HTML into terminal output, triggering renderer-side script execution within the electerm window. The injected script calls the runGlobalAsync IPC handler with the target function name (e.g., openFileWithEditor or a shell-invoking equivalent) and attacker-controlled arguments, causing the main process to execute an arbitrary OS command as the logged-in user - all without any privilege escalation prompt. No published POC exists, but the unpatched ipc.js source at v5.3.5 is publicly visible and the attack surface is self-documenting from the patch diff. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Arbitrary OS command execution in electerm before 5.3.15 is achievable through a completely unvalidated Electron IPC bridge that exposes 40+ main-process functions - including openFileWithEditor and runGlobalAsync - to any renderer-side script without allowlisting function names or validating the sender's identity. An attacker who achieves renderer-side script execution (e.g., via XSS through malicious SSH server output or a compromised webview) can pivot directly into the main process and invoke system-level operations with no further authentication. No public exploit is identified at time of analysis, but the patch commit (b1f880534b8ae066c5d25bbf291ca7437e052750) is publicly available and makes the exploitation surface trivially reconstructible.
RemediationAI
Upgrade electerm to version 5.3.15 or later; this is confirmed by the tagged release at https://github.com/electerm/electerm/releases/tag/v5.3.15 and the patch commit at https://github.com/electerm/electerm/commit/b1f880534b8ae066c5d25bbf291ca7437e052750. If upgrading immediately is not possible, restrict electerm to connections only with trusted SSH servers and avoid using it to connect to arbitrary or untrusted endpoints, as malicious server output is the most likely renderer-compromise vector. Disabling or sandboxing webview/embedded browser components within the application, if configurable, reduces the attack surface. There is no runtime workaround that fully mitigates the unvalidated IPC bridge short of patching the ipc.js source.
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
electerm is an Electron-based terminal emulator (CPE: cpe:2.3:a:electerm:electerm:*:*:*:*:*:*:*:*). Electron applications split into a privileged main process and sandboxed renderer processes; they communicate via IPC (ipcMain/ipcRenderer). The vulnerable IPC handlers - runGlobalAsync and runSync - accepted arbitrary function names and forwarded calls to main-process function registries without verifying (a) that the requested function name was in a pre-approved set, or (b) that the calling renderer was the trusted application window rather than an untrusted webview, popup, or injected script. CWE-749 (Exposed Dangerous Method or Function) is the root cause: the entire main-process function table was reachable from any renderer frame. The fix in v5.3.15 introduces isExportedIpcFunc (hasOwnProperty check against the dispatch object to prevent prototype-chain pivots) and isTrustedIpcSender (verifying event.sender === win.webContents), as shown in the patch diff.
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
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Renderer compromise prerequisite makes AV:L/AC:H appropriate; scope changes from renderer sandbox to main-process OS execution (S:C); PR:N as no system privileges needed.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
electerm before 5.3.15 exposes 40+ main-process functions through an unvalidated Electron IPC handler with no function-name allowlist or sender validation. Renderer-side script execution can invoke openFileWithEditor and other functions with arbitrary arguments to execute system commands in the main process.
Technical POC Analysis
The bug is a missing authorization check on the dynamic Electron IPC bridge: CWE-749 (Exposed Dangerous Operation) in the issue text, matching CWE-863 (Incorrect Authorization) in the advisory.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
electerm, a terminal application used by technical staff for SSH access and systems management, contains a critical vulnerability in versions prior to 5.3.15 that enables arbitrary OS command execution on user machines. Attackers can exploit this through malicious SSH server responses or other renderer-side attacks to gain complete control of affected workstations, directly threatening organizational systems and administrative access.
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
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
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 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
Path traversal in electerm's SFTP client allows a malicious or man-in-the-middle SFTP server to write attacker-controlle
Command injection in electerm's SFTP file editor feature allows arbitrary code execution when users edit files with mali
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
EUVD-2026-72687
GHSA-hxxx-8rvv-qg5m
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB