Skip to main content

electerm CVE-2026-43942

| EUVDEUVD-2026-28514 MEDIUM
Information Exposure (CWE-200)
2026-05-08 GitHub_M GHSA-37j4-88rp-2f6h
5.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Local access to system
  2. Delivery
    Open electerm application
  3. Exploit
    Access DevTools or inject JavaScript
  4. Execution
    Execute window.pre.env query
  5. Persist
    Exfiltrate credentials
  6. Impact
    Abuse 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

electerm ≤ 3.8.15

Affected Packages

npm electerm no fix

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

Vendor (GitHub_M) PRIMARY 5.5 MEDIUM
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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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

EPSS Score
0.0%
Top 99% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-43944 CRITICAL POC
9.4 May 08

Arbitrary local code execution in electerm (versions 3.0.6-3.8.14) allows remote attackers to execute malicious code on

CVE-2026-41500 CRITICAL
9.8 May 08

Command injection in electerm's npm install script allows arbitrary command execution on macOS systems during 'npm insta

CVE-2026-43941 CRITICAL
9.6 May 08

Arbitrary code execution in Electerm terminal client (≤3.8.15) allows attackers who control terminal output to execute c

CVE-2026-73226 HIGH
8.8 Aug 11

Unintended internal method dispatch in electerm prior to v3.15.186 allows any authenticated WebSocket client to invoke a

CVE-2026-73224 HIGH
8.8 Aug 11

Command injection in electerm prior to version 3.15.120 enables a malicious FTP or SFTP server operator to execute arbit

CVE-2026-134793 HIGH
8.5 Nov 22

OS command injection in Electerm on Windows up to and including 5.8.0 lets a file or folder name carrying a typographic

CVE-2026-43940 HIGH
8.4 May 08

Path traversal in electerm's IPC widget loader allows local code execution with full process privileges when an attacker

CVE-2026-73227 HIGH
8.1 Aug 11

Path traversal in electerm's RDP clipboard file transfer (prior to v3.15.120) lets a malicious RDP server write attacker

CVE-2026-73225 HIGH
8.1 Aug 11

Path traversal in electerm's recursive file transfer component allows a malicious FTP or SFTP server to write attacker-c

CVE-2026-73223 HIGH
8.1 Aug 11

Path traversal in electerm's SFTP client allows a malicious or man-in-the-middle SFTP server to write attacker-controlle

CVE-2026-43943 HIGH
7.8 May 08

Command injection in electerm's SFTP file editor feature allows arbitrary code execution when users edit files with mali

CVE-2026-136630 HIGH
7.7 Nov 25

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy