9.8critical
electerm has Command Injection Vulnerability via runMac function
- Severity
- 9.8critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.57% (higher than 76% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-wxw2-rwmh-vr8f
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| electerm electerm | < 3.3.8 | CVE List |
| electerm (npm) | before 3.3.8 | GitHub Advisory Database |
| electerm_project electerm | before 3.3.8 | NVD |
All scores
| GitHub_M | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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:150. The runMac() function appends attacker-controlled remote releaseInfo.name directly into an exec("open ...") command without validation.
Who is impacted: Users who run npm install -g electerm in Mac OS. 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
References
Are there any links users can visit to find out more?
NVD (es)
electerm es un cliente de terminal/ssh/sftp/telnet/puerto serie/RDP/VNC/Spice/ftp de código abierto. Antes de la versión 3.3.8, existe una vulnerabilidad de inyección de comandos en github.com/elcterm/electerm/npm/install.js:150. La función runMac() añade el releaseInfo.name remoto controlado por el atacante directamente a un comando exec(’open ...’) sin validación. Este problema ha sido parcheado en la versión 3.3.8.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-41500 changed 2026-05-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wxw2-rwmh-vr8f changed 2026-05-11 | CC-BY-4.0 |
| NVD | CVE-2026-41500 changed 2026-11-11 | Public domain |