Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocal access to system
-
DeliveryOpen electerm application
-
ExploitAccess DevTools or inject JavaScript
-
ExecutionExecute window.pre.env query
-
PersistExfiltrate credentials
-
ImpactAbuse stolen secrets
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | JavaScript execution within the electerm renderer process is the mandatory prerequisite. This is achievable through multiple vectors: (1) Electron DevTools console if enabled or if the user can access it (assumed possible for local attackers); (2) any client-side code injection vulnerability in the renderer that parses untrusted input (e.g., terminal output rendering, file transfer preview); (3) compromise of a preload script or third-party library loaded in the renderer. Exploitation is NOT automatic-it requires an attacker to either achieve local code execution already or manipulate a local user into executing code via the DevTools console. The vulnerability does NOT require elevated privileges beyond the ability to run JavaScript in the renderer, which any local user with access to the application can attempt via DevTools. The high confidentiality impact assumes process.env contains secrets; applications with minimal environment variable usage face reduced impact, though typical Node.js deployments leak extensive sensitive data this way. |
| Impact | CVSS 5.5 with AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N indicates local user (PR:L) with low attack complexity can achieve high confidentiality impact. The local attack vector and low-privilege requirement significantly reduce real-world risk compared to network-exploitable vulns, but the high confidentiality impact is severe-direct exposure of process-wide environment variables. However, CRITICAL SIGNAL CONFLICT: achieving JavaScript execution in the renderer (the true prerequisite for exploitation) is non-trivial and depends on the attacker's initial access level and the specific attack surface. The CVSS PR:L (low privilege) metric is misleading-it reflects *opening* the application, not the privilege level needed to inject JavaScript. In realistic scenarios, exploitation requires either: (1) a local user with access to the system, (2) a separate Electron renderer RCE, or (3) social engineering to enable DevTools. The lack of EPSS data and KEV status prevents quantification of real-world exploitation probability, but the trivial nature of exfiltration once JavaScript execution is achieved suggests moderate practical risk for users in multi-user environments or if combined with other Electron vulns. For single-user desktops, risk is lower. Organizations deploying electerm in shared or CI/CD environments face elevated risk. |
| Exploit ScenarioDerived | A developer on a shared workstation opens electerm to manage SSH connections. An attacker gains local access (e.g., via stolen credentials, physical access, or malware), opens the running electerm instance, right-clicks and selects 'Inspect Element' to open DevTools, then executes window.pre.env in the console and copies all environment variables including AWS_ACCESS_KEY_ID, GITHUB_TOKEN, and database passwords. The attacker exfiltrates these to a C2 server in seconds and uses the credentials to compromise the developer's cloud infrastructure. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
electerm 3.8.15 and prior exposes environment variables containing secrets through the getConstants() IPC handler, which serializes the entire process.env object and stores it as window.pre.env accessible to any JavaScript running in the renderer process. An attacker achieving JavaScript execution within the renderer-via DevTools, compromised webview, or client-side injection-can exfiltrate sensitive credentials to remote servers, enabling cloud account compromise and lateral movement. No public exploit code identified at time of analysis, but the vulnerability is trivial to exploit once renderer JavaScript execution is achieved.
RemediationAI
Upgrade electerm to a version released after 3.8.15 that remedies this IPC exposure. At time of analysis, no vendor-released patch version is publicly documented; monitor the GitHub Security Advisory (https://github.com/electerm/electerm/security/advisories/GHSA-37j4-88rp-2f6h) for patch availability. Interim mitigations: (1) Audit and minimize environment variables passed to electerm-use application-specific credential stores (e.g., OS keychain) instead of process.env where possible; trade-off is refactoring application configuration flow. (2) Disable Developer Tools in production builds by configuring nodeIntegration: false and preload scripts with restricted sandbox access in Electron webPreferences; requires rebuild. (3) Restrict file system and process permissions for the electerm application user to limit lateral movement if credentials are exfiltrated. (4) For high-security environments, avoid storing long-lived cloud credentials in process.env; use time-limited tokens or role-based access from external credential providers. (5) Monitor for suspicious outbound connections from electerm process as a runtime detection signal for JavaScript execution attempts.
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 desktop application that implements multiple terminal and file transfer protocols. The vulnerability exists in the IPC (Inter-Process Communication) bridge between the main process and renderer process in src/app/lib/ipc-sync.js. The getConstants() IPC handler serializes Node.js process.env-which typically contains API keys, cloud credentials, database passwords, SSH keys, and other sensitive environment variables-and transmits it to the renderer context where it becomes globally accessible as window.pre.env. The underlying issue is CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor), compounded by insufficient data isolation between privileged main and unprivileged renderer processes in Electron. Any JavaScript execution in the renderer context (including DevTools console, user-supplied scripts in terminal emulation, or compromised third-party webview content) can access this plaintext secret store.
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:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
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, the getConstants() IPC handler in src/app/lib/ipc-sync.js serialises the entire process.env object and sends it to the renderer. The data is stored as window.pre.env and is accessible from any JavaScript running in the renderer (e.g., via the DevTools console or a compromised webview context). An attacker who achieves any JavaScript execution within the renderer can trivially exfiltrate these secrets to a remote server, leading to cloud account compromise, supply chain attacks, and lateral movement. At time of publication, there are no publicly available patches.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-28514
GHSA-37j4-88rp-2f6h
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB