Improper Neutralization of Special Elements used in a Command ('Command Injection')
CVE-2026-41501
Summary
A Command Injection vulnerability exists in "github.com/elcterm/electerm/npm/install.js". The "runLinux()" function appends attacker-controlled remote version strings directly into an "exec("rm -rf ...")" command without validation. Users who run "npm install -g electerm" in Linux are affected. 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. This affects electerm versions prior to 3.3.8.
- LOW
- NETWORK
- HIGH
- UNCHANGED
- NONE
- NONE
- HIGH
- HIGH
CWE-77 - Command Injection
A command injection attack involves injecting an operating system command through the data input, which gets executed on the host operating system with the privileges of the victimized application. The impact of a command injection attack may range from loss of data confidentiality and integrity to unauthorized remote access to the hosting system. The attack may cause serious data breaches and system takeover.
References
Advisory Timeline
- Published