Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

GHSA-wxw2-rwmh-vr8f

electerm: electerm_install_script_CommandInjection Vulnerability Report
Back to all
CVE

GHSA-wxw2-rwmh-vr8f

electerm: electerm_install_script_CommandInjection Vulnerability Report

Impact

What kind of vulnerability is it? Who is impacted?

Two Command Injection vulnerabilities in electerm:

  1. macOS Installer (electermCommandInjection02): 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.
  2. Linux Installer (electermCommandInjection01): 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.

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

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
-
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

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

Severity

9.8

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
9.8
EPSS Probability
0%
EPSS Percentile
0%
Introduced Version
0
Fix Available
3.3.8

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading