GHSA-wxw2-rwmh-vr8f
Impact
What kind of vulnerability is it? Who is impacted?
Two Command Injection vulnerabilities in electerm:
- macOS Installer (
electermCommandInjection02): A command injection vulnerability exists ingithub.com/elcterm/electerm/npm/install.js:150. TherunMac()function appends attacker-controlled remotereleaseInfo.namedirectly into anexec("open ...")command without validation. - Linux Installer (
electermCommandInjection01): A command injection vulnerability exists ingithub.com/elcterm/electerm/npm/install.js:130. TherunLinux()function appends attacker-controlled remote version strings directly into anexec("rm -rf ...")command without validation.
Who is impacted: Users who run npm install -g electerm. 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
Package Versions Affected
Automatically patch vulnerabilities without upgrading
CVSS Version



Related Resources
References
https://github.com/electerm/electerm/security/advisories/GHSA-wxw2-rwmh-vr8f, https://github.com/electerm/electerm/commit/59708b38c8a52f5db59d7d4eff98e31d573128ee, https://github.com/electerm/electerm
