Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain same-user local code execution
-
DeliveryLocate electerm single-instance socket or named pipe
-
ExploitSend crafted JSON open-tab payload with exec*/runScripts fields
-
ExecutionPrimary instance calls addTab() with attacker config
-
PersistSpawn attacker-controlled binary as desktop user
-
ImpactEstablish persistence and execute follow-on commands
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to already execute code as the same OS user that runs electerm on the target host (CVSS AV:L, PR:L), and requires the victim to have electerm 3.0.6-3.8.8 installed and running (or launchable) in its default single-instance mode so that the IPC socket/named pipe is reachable on the local filesystem namespace. No user interaction is needed (UI:N) - the malicious process simply connects to the single-instance pipe and writes a JSON payload, which the primary instance processes automatically by creating a tab whose execLinux/execMac/execWindows, exec*Args, setEnv, runScripts, or interactiveValues fields point at attacker-controlled commands. Exploitation is limited by the requirement that electerm be installed, that single-instance mode be active, that an electerm primary instance be running (or be started by the victim after the malicious payload is staged), and that the attacker have a process running under the same UID as electerm; the bug is not reachable from the network or from a different local user account. |
| Impact | The CVSS 4.0 vector AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H yields a 9.3 (Critical) and is internally consistent with the description: the attacker must already have local code execution as the same user (PR:L, AV:L) but needs no user interaction (UI:N) and obtains full confidentiality/integrity/availability impact on both the vulnerable and a subsequent scope. There is no EPSS score, KEV listing, or SSVC decision data provided, and no public PoC has been identified, so this is best treated as a privilege/sandbox-escape primitive rather than an internet-facing RCE - its real value to an attacker is post-compromise (e.g., escaping a low-privilege user-mode process, a browser renderer, or a sandboxed helper into arbitrary command execution under the desktop user) rather than initial access. Defenders running multi-user workstations, shared dev VMs, or environments where untrusted code (build agents, malicious npm postinstall scripts, browser exploits) may run as the same UID as the electerm user should treat this as a real priority; single-user desktops where nothing untrusted runs as the user face materially lower practical risk despite the Critical score. |
| Exploit ScenarioDerived | An attacker who has achieved low-privilege code execution as the desktop user - for example, via a malicious npm package's postinstall script on a developer's machine that also runs electerm - opens the local single-instance IPC endpoint and sends a JSON 'open-tab' payload whose bookmark fields set execLinux (or execWindows/execMac) and execLinuxArgs to /bin/sh -c '<attacker command>'. electerm's primary instance receives the payload, calls addTab() with the attacker's configuration, and on tab activation spawns the attacker-controlled binary with full user privileges, providing reliable command execution and persistence without any UI prompt or click. No public proof-of-concept was identified at time of analysis, but the commit's denylist of fields essentially documents the exploitation surface. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – May 28, 2026
Local code execution in electerm 3.0.6 through 3.8.8 allows any same-user process to send a crafted JSON payload to electerm's single-instance IPC socket/pipe, causing the application to open tabs with attacker-controlled exec paths, arguments, environment variables, and post-connect scripts that spawn arbitrary local processes. No public exploit identified at time of analysis, but the GHSA advisory and patch commit confirm the vulnerability is real, scored CVSS 4.0 9.3 (Critical), and fixed in version 3.9.0 by filtering dangerous tab properties on the IPC boundary.
Earlier versions of this analysis (2)
Local code execution in electerm 3.0.6 through 3.8.8 allows any same-user process to send a crafted JSON payload to the app's single-instance IPC socket/pipe, triggering tab creation with attacker-controlled exec paths and arguments that spawn arbitrary local processes. No UI interaction is required, and no public exploit identified at time of analysis, though the commit fix and GHSA advisory describe the mechanism in enough detail to reconstruct one. CVSS 4.0 scores this 9.3 (Critical) due to high confidentiality, integrity, and availability impact plus subsequent system scope.
Local code execution in electerm (npm package) versions 3.0.6 through 3.8.8 allows any same-user process to inject malicious JSON payloads into the application's single-instance IPC socket, spawning attacker-controlled local processes without user interaction. Vendor-released patch available in version 3.9.0. No public exploit identified at time of analysis, though the attack technique is documented in the GitHub advisory with researcher credit to Curly-Haired-Baboon.
RemediationAI
Vendor-released patch: upgrade electerm to 3.9.0 or later (the commit diff shows the project subsequently shipped 3.9.5, so install the latest available release from https://github.com/electerm/electerm/releases). The fix introduces store.ipcOpenTab(), which strips the dangerous properties execLinux, execMac, execWindows, execWindowsArgs, execMacArgs, execLinuxArgs, setEnv, runScripts, and interactiveValues from any IPC-supplied tab payload before it reaches addTab(). The vendor's only suggested workaround is 'do not run unsafe commands,' which is not a meaningful control for this bug because the threat model is already a same-user process - until you patch, practical compensating controls are: avoid running electerm on shared/multi-user hosts or hosts that execute untrusted code under your UID (build agents, sandboxed browser helpers, npm postinstall hooks, IDE extensions); start electerm with single-instance behavior disabled if your packaging permits it (this trades off the convenience of one window per launch); or run electerm inside its own OS user account / Flatpak / container so other same-user processes cannot reach the socket or named pipe. Consult the GHSA advisory at https://github.com/electerm/electerm/security/advisories/GHSA-7p5m-v798-f8vv for vendor guidance.
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 open-source SSH/terminal client distributed via npm (pkg:npm/electerm). To enforce single-instance behavior, the app exposes a local IPC channel (a Unix domain socket on macOS/Linux or a named pipe on Windows) that secondary launches use to forward 'open-tab' payloads to the primary instance. The root cause maps to CWE-94 (Improper Control of Generation of Code, 'Code Injection'): the primary instance trusted the JSON payload received over IPC and passed it directly into store.addTab(), where bookmark fields such as execWindows/execMac/execLinux, their *Args counterparts, setEnv, runScripts, and interactiveValues are honored as legitimate session-launch configuration. Because those fields can specify an arbitrary executable path with arguments and environment, accepting them from an unauthenticated local IPC peer turns a UI configuration surface into a command-execution sink. The fix (commit 0599e67) introduces an ipcOpenTab() wrapper that strips a denylist of dangerous tab properties before forwarding the payload to addTab, and comments out the corresponding zod schema fields for IPC-originated bookmarks.
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
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
4DescriptionGitHub Advisory
Impact
_Local code execution without UI interaction: any same-user process can send a JSON payload to electerm's single-instance socket/pipe, causing the app to create tabs and potentially spawn attacker-controlled local processes. Affects electerm single-instance installs on the machine._
Patches
- https://github.com/electerm/electerm/commit/0599e67069b00e376a2e962649aaad6096e63507
Workarounds
- Do not run unsafe command
References
- Report / credit: https://github.com/Curly-Haired-Baboon
- Electerm releases: https://github.com/electerm/electerm/releases
Executive ViewAI
Electerm versions 3.0.6 through 3.8.8 contain a critical local code execution vulnerability allowing arbitrary command execution from same-system processes. Organizations must immediately patch affected installations to version 3.9.0 within 7 days, as this vulnerability enables malware injection and unauthorized code execution on systems where electerm is deployed, particularly administrative and development workstations.
Vendor-released patch: version 3.9.0. No interim mitigations available; patching is required to resolve the vulnerability.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-32960
GHSA-7p5m-v798-f8vv
NVD
CVE.org
EPSS
VulDB
Exploit-DB