Skip to main content

electerm CVE-2026-41500

| EUVDEUVD-2026-28496 CRITICAL
Command Injection (CWE-77)
2026-05-08 GitHub_M GHSA-wxw2-rwmh-vr8f
9.8
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Patch available
May 08, 2026 - 05:01 EUVD
Source Code Evidence Fetched
May 08, 2026 - 04:30 vuln.today
Analysis Generated
May 08, 2026 - 04:30 vuln.today
CVE Published
May 08, 2026 - 02:53 nvd
CRITICAL 9.8

DescriptionGitHub Advisory

electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to version 3.3.8, a command injection vulnerability exists in github.com/elcterm/electerm/npm/install.js:150. The runMac() function appends attacker-controlled remote releaseInfo.name directly into an exec("open ...") command without validation. This issue has been patched in version 3.3.8.

AnalysisAI

Command injection in electerm's npm install script allows arbitrary command execution on macOS systems during 'npm install -g electerm'. The runMac() function in install.js:150 passes attacker-controlled remote release metadata (releaseInfo.name) directly to exec('open ...') without validation, enabling remote code execution as the installing user. CVSS 9.8 (AV:N/AC:L/PR:N/UI:N) reflects theoretical network-based exploitation, though actual attack requires compromise of the project's update server or man-in-the-middle position during npm package installation. No public exploit identified at time of analysis. Vendor-released patch: version 3.3.8 (commit 59708b3).

Technical ContextAI

This vulnerability stems from unsafe use of Node.js child_process.exec() in an npm postinstall script. CWE-77 (Command Injection) occurs when the install.js script retrieves release metadata from a remote server and concatenates the unsanitized 'name' field into a shell command executed via exec(). The affected code path is specific to macOS installations where runMac() opens downloaded packages. CPE cpe:2.3:a:electerm:electerm identifies the affected product as electerm's npm package. The vulnerability exists in the package installation lifecycle, not the runtime application itself. The commit diff shows the vulnerable install.js was replaced with a safer implementation using tar extraction and spawn() instead of exec(), and the auto-open behavior on macOS was removed entirely.

RemediationAI

Upgrade to electerm version 3.3.8 or later via 'npm install -g electerm@latest'. The fix in commit 59708b38c8a52f5db59d7d4eff98e31d573128ee removes the vulnerable exec() call entirely, replacing install.js with a safer implementation using tar extraction and child_process.spawn() with separated arguments. The auto-open behavior on macOS was eliminated. Users who installed pre-3.3.8 versions should verify no malicious commands were executed during installation by reviewing shell history and system logs from the installation timeframe. No workaround exists for older versions per the vendor advisory - upgrade is mandatory. As the vulnerability is in the install script rather than runtime code, already-installed instances pose no ongoing risk, but all future installations/updates should use 3.3.8+. Release notes: https://github.com/electerm/electerm/releases/tag/v3.3.8. Patch commit: https://github.com/electerm/electerm/commit/59708b38c8a52f5db59d7d4eff98e31d573128ee.

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2013-4660 MEDIUM POC
6.8 Jun 28

The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic

CVE-2015-5688 MEDIUM POC
5.0 Sep 04

Directory traversal vulnerability in lib/app/index.js in Geddy before 13.0.8 for Node.js allows remote attackers to read

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2014-7192 CRITICAL POC
10.0 Dec 11

Eval injection vulnerability in index.js in the syntax-error package before 1.1.1 for Node.js 0.10.x, as used in IBM Rat

CVE-2013-4450 MEDIUM POC
5.0 Oct 21

The HTTP server in Node.js 0.10.x before 0.10.21 and 0.8.x before 0.8.26 allows remote attackers to cause a denial of se

Share

CVE-2026-41500 vulnerability details – vuln.today

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