{"id":"CVE-2026-41501","aliases":["CVE-2026-41501","GHSA-8x35-hph8-37hq"],"related":[],"kind":"vulnerability","state":"published","title":"electerm has Command Injection Vulnerability via runLinux function","summary":"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:130. The runLinux() function appends attacker-controlled remote version strings directly into an exec(\"rm -rf ...\") command without validation. This issue has been patched in version 3.3.8.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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:130. The runLinux() function appends attacker-controlled remote version strings directly into an exec(\"rm -rf ...\") command without validation. This issue has been patched in version 3.3.8.","source":"cvelist"},{"lang":"en","text":"### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\n**Command Injection vulnerabilities in electerm:**\n\nA 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.\n\n**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.\n\n---\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nFixed in [59708b38c8a52f5db59d7d4eff98e31d573128ee](https://github.com/electerm/electerm/commit/59708b38c8a52f5db59d7d4eff98e31d573128ee), user no need to upgrade, the new version already published in npm\n\n---\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nno","format":"markdown","source":"ghsa"},{"lang":"es","text":"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:130. La función runLinux() añade cadenas de versión remotas controladas por el atacante directamente a un comando exec(’rm -rf ...’) sin validación. Este problema ha sido parcheado en la versión 3.3.8.","source":"nvd"}],"published":"2026-04-24T20:45:13.000Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"version":"< 3.3.8","status":"affected"}],"vendor":"electerm","product":"electerm","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.3.8"}],"ecosystem":"npm","package":"electerm","purl":"pkg:npm/electerm","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.3.8"}],"vendor":"electerm_project","product":"electerm","cpe":"cpe:2.3:a:electerm_project:electerm:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/electerm/electerm/security/advisories/GHSA-8x35-hph8-37hq","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electerm/electerm/commit/59708b38c8a52f5db59d7d4eff98e31d573128ee","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electerm/electerm/releases/tag/v3.3.8","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41501","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/electerm/electerm","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-05-08T11:19:45.771Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41501","url":"https://www.cve.org/CVERecord?id=CVE-2026-41501","licence":"CVE Terms of Use","modified":"2026-05-08T11:19:54.297Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8x35-hph8-37hq","url":"https://github.com/advisories/GHSA-8x35-hph8-37hq","licence":"CC-BY-4.0","modified":"2026-05-12T17:09:57.798Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41501","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41501","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:20.944Z","epss":{"score":0.01286,"percentile":0.71028,"date":"2026-12-02T12:00:21.000Z"}}