Skip to main content

electerm EUVDEUVD-2026-28512

| CVE-2026-43940 HIGH
Path Traversal (CWE-22)
2026-05-08 GitHub_M GHSA-f77v-9vpc-6pjm
8.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Deliver malicious plugin/content
  2. Delivery
    Load into electerm renderer
  3. Exploit
    Execute JavaScript in sandbox
  4. Install
    Invoke IPC handler with traversal path
  5. C2
    Main process loads arbitrary file
  6. Execute
    Execute code with full privileges
  7. Impact
    Exfiltrate credentials or persist

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires the attacker to first achieve arbitrary JavaScript execution within electerm's Electron renderer process. This prerequisite is met when: (1) the user installs and activates a malicious or compromised electerm plugin/widget, (2) electerm's built-in webview renders untrusted content containing XSS payloads that execute in the application context, or (3) the user loads a terminal session or connection profile crafted to inject JavaScript into the renderer. Once renderer-level code execution is achieved, the path traversal exploitation requires no additional user interaction or authentication. The vulnerability does NOT allow remote unauthenticated exploitation against default electerm installations - the local attack vector (AV:L) reflects the requirement for prior renderer compromise, not traditional local system access. Limiting factors: exploitation requires the user to interact with untrusted content or plugins; organizations that restrict electerm to trusted terminal sessions only face significantly reduced risk.

Impact

CVSS 8.4 (High) indicates critical impact but requires a precondition that significantly constrains real-world exploitability. The AV:L (local attack vector) rating is somewhat misleading - this is not traditional local access but rather requires the attacker to first achieve JavaScript execution within electerm's renderer process, typically through a malicious plugin, compromised extension, or XSS in the application's webview component. The PR:N rating reflects no authentication once renderer execution is achieved, but obtaining that initial foothold is the critical barrier. AC:L and UI:N are accurate post-compromise. No EPSS score available and absent from CISA KEV, suggesting this is not being actively exploited in the wild. The attack requires two stages: (1) compromise renderer process, (2) exploit path traversal for privilege escalation. This is a serious vulnerability for environments where untrusted plugins or content are loaded into electerm, but not an immediate mass-exploitation risk. Organizations using electerm with third-party plugins or processing untrusted terminal content should prioritize patching; those running only trusted configurations face lower immediate risk.

Exploit ScenarioDerived

An administrator installs a malicious electerm plugin from an untrusted source or opens a terminal session that triggers an XSS vulnerability in electerm's webview component. The attacker's JavaScript code in the renderer process invokes the exposed IPC handler with a crafted widget identifier containing path traversal sequences (e.g., '../../../Users/victim/.ssh/malicious.js'). The vulnerable runWidget function concatenates this unsanitized input into a filesystem path and executes the attacker-controlled JavaScript file with full main process privileges, granting complete access to the victim's files, credentials, and system.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 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

Path traversal in electerm's IPC widget loader allows local code execution with full process privileges when an attacker achieves JavaScript execution in the renderer process. Affects all versions prior to 3.7.16. The vulnerability enables filesystem-wide arbitrary JavaScript file loading and execution through unsanitized path concatenation in runWidget function, bypassing Electron's process isolation. Vendor-released patch available in version 3.7.16. EPSS data not available; no confirmed active exploitation (not in CISA KEV).

RemediationAI

Upgrade to electerm version 3.7.16 immediately, available at https://github.com/electerm/electerm/releases/tag/v3.7.16. The patch implements input validation and sanitization in the runWidget IPC handler to prevent directory traversal sequences. If immediate upgrade is not feasible, implement strict compensating controls: disable all third-party widget and plugin loading functionality if the application exposes such features; restrict electerm to processing only trusted terminal sessions without embedded webviews or user-supplied content; run electerm under a restricted user account with minimal filesystem permissions to limit post-exploitation impact (note: this reduces but does not eliminate risk as the attacker still inherits the restricted user's privileges). Review application logs for suspicious widget loading attempts (look for paths containing ../ sequences). These mitigations carry operational trade-offs - disabling plugins may break legitimate workflows, and restricted accounts may limit integration with system tools.

Affected VersionsENISA

electerm < 3.7.16

Affected Packages

npm electerm fix: 3.7.16

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 multiple protocols (SSH, SFTP, Telnet, RDP, VNC, Spice). The vulnerability exists in the main-to-renderer IPC (Inter-Process Communication) bridge architecture inherent to Electron applications. The runWidget function in src/app/widgets/load-widget.js accepts widget identifiers from the renderer process via an async IPC handler and directly concatenates them into filesystem paths without validation. This is a classic CWE-22 path traversal vulnerability where directory traversal sequences (../) can escape the intended widget directory. Because Electron's main process runs with full Node.js privileges while the renderer is sandboxed, exposing filesystem operations to renderer-controlled input creates a privilege escalation vector. The flaw breaks the security boundary between sandboxed renderer code and privileged main process operations.

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 8.4 HIGH
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
May 08, 2026 - 05:01 EUVD
CVE Published
May 08, 2026 - 02:58 nvd
HIGH 8.4

DescriptionCVE.org

electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to version 3.7.16, the runWidget function in src/app/widgets/load-widget.js constructs a file path by directly concatenating user‑supplied widget identifiers without any sanitisation. Because runWidget is exposed to the renderer process via an asynchronous IPC handler with no input validation, an attacker who achieves JavaScript execution inside the renderer (for example, through a malicious plugin or a cross‑site scripting flaw in the built‑in webview) can abuse a path traversal (../) to load and execute an arbitrary JavaScript file anywhere on the victim’s filesystem. This gives the attacker local code execution with the full privileges of the electerm process, leading to complete system compromise. This issue has been patched in version 3.7.16.

Executive ViewAI

Why It Matters

CVE-2026-43940 is a high-severity path traversal vulnerability in electerm versions prior to 3.7.16 that allows local attackers with renderer process access to execute arbitrary JavaScript with full process privileges, effectively bypassing Electron's security isolation. Organizations using electerm should prioritize upgrading to 3.7.16 immediately, as this vulnerability could enable complete application compromise and lateral movement within affected systems.

Business Impact: High
Compensating Controls

Vendor-released patch: electerm 3.7.16. Apply immediately. If immediate patching is not feasible, implement strict network segmentation to limit renderer process exposure, disable untrusted JavaScript execution contexts within electerm, and monitor for filesystem access anomalies using endpoint detection and response (EDR) tools. However, these mitigations are incomplete and patching remains the primary remediation path.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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