Skip to main content

Electerm CVE-2026-45058

| EUVDEUVD-2026-32961 CRITICAL
Code Injection (CWE-94)
2026-05-14 https://github.com/electerm/electerm GHSA-jgg9-rw32-44pj
9.4
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious bookmark JSON with exec fields
  2. Delivery
    Deliver via shared file or compromised sync target
  3. Exploit
    Victim imports bookmark or sync applies
  4. Execution
    Electerm spawns local pty with injected commands
  5. Persist
    Attacker code executes as user
  6. Impact
    Persist via additional bookmark entries

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to either (a) import a bookmark JSON file containing attacker-controlled exec* fields or global config entries into Electerm, or (b) have Electerm sync configured against a Gist or WebDAV endpoint that the attacker controls or has compromised. Execution is then triggered when the user opens a local-type bookmark or when the sync routine applies attacker-supplied configuration. Limiting factors: requires active user interaction (CVSS UI:A) - either an explicit import action or pre-existing sync configuration with an untrusted target - and only affects installations of Electerm version 3.8.8 or earlier; default installations with no imported bookmarks and no third-party sync configured are not exposed without the victim performing one of these actions.

Impact

The CVSS 4.0 score of 9.4 reflects Network attack vector, Low complexity, No privileges required, but Active user interaction (UI:A) with High impact across confidentiality, integrity, and availability for both vulnerable and subsequent systems. In practical terms, the network/no-auth vector is misleading on its own - exploitation requires the victim to import a malicious bookmark file or to have a sync target the attacker controls, so this behaves more like a client-side, social-engineering-driven RCE than a remote service flaw. EPSS data was not provided, the CVE is not on the CISA KEV list, and no public exploit was identified at time of analysis, suggesting the realistic threat is opportunistic targeting of Electerm users who share bookmark files or use third-party sync (Gist/WebDAV) rather than widespread mass exploitation. Risk should be prioritized for environments where engineers commonly exchange Electerm bookmark files or use shared/untrusted sync endpoints; otherwise it is a meaningful but conditional client-side RCE.

Exploit ScenarioDerived

An attacker hosts a crafted Electerm bookmark JSON file containing malicious exec* fields (or compromises a Gist/WebDAV sync endpoint that a target uses) and lures an engineer to import it or wait for sync to apply. When the user clicks a local-type bookmark or the sync routine processes the attacker's config, Electerm spawns a local pty that runs the injected commands under the user's account, giving the attacker code execution on the workstation. No public exploit was identified at time of analysis, but the attack pattern is straightforward given the documented exec* injection vector.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – May 28, 2026

Code execution in Electerm (npm package, versions <= 3.8.8) allows attackers to achieve persistent local-pty code execution by tricking users into importing malicious bookmark JSON files or by compromising configured sync targets (Gist/WebDAV). The flaw stems from unsafe handling of bookmark fields (exec*) and global config entries, which are executed when a bookmark is opened or when sync is applied. No public exploit identified at time of analysis, and no vendor-released patch is identified at time of analysis.

Earlier versions of this analysis (2)
v2 May 28, 2026 - 18:29 cvss changed CVSS 9.4

Remote code execution in Electerm versions 3.8.8 and earlier allows attackers to achieve persistent local-pty code execution by injecting malicious exec* fields or global configuration into bookmark JSON files or sync targets (Gist/WebDAV). Triggered when a victim imports a tampered bookmark file or opens a synced bookmark, the flaw stems from unsafe handling of imported terminal-bookmark data (CWE-94 code injection). No public exploit identified at time of analysis, and no vendor-released patch is identified at time of analysis.

v1 May 14, 2026 - 21:16

Persistent code execution in electerm (npm package, versions ≤3.8.8) allows attackers to inject malicious code through imported bookmark JSON files or compromised sync targets (GitHub Gist/WebDAV). When victims import crafted bookmarks or apply synchronized configuration, the injected exec* fields or global config execute arbitrary code in the local PTY context upon bookmark activation. No vendor patch exists at time of analysis. EPSS and KEV data not available for this CVE, indicating recent disclosure without confirmed widespread exploitation.

RemediationAI

No vendor-released patch identified at time of analysis - the GHSA advisory explicitly states 'Patches: Not yet' and no fixed version is listed in the npm advisory. Until a patched release appears at https://github.com/electerm/electerm/releases, the only vendor-suggested workaround is to avoid importing bookmark JSON from untrusted sources; in addition, security teams should disable or unconfigure third-party bookmark sync (Gist/WebDAV) when the sync endpoint is not fully controlled, since a compromised sync target also triggers this issue, accepting the trade-off of losing cross-device bookmark synchronization. Organizations may also restrict execution of Electerm to managed endpoints, block bookmark imports through endpoint policy or application allow-listing, and audit existing bookmark files for unexpected exec* fields or unusual global config entries before re-importing.

Affected VersionsENISA

electerm ≤ 3.8.8

Affected Packages

npm electerm no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Electerm is an open-source Electron-based SSH/terminal/SFTP client distributed via npm. The root cause is CWE-94 (Improper Control of Generation of Code, i.e., code injection): bookmark JSON imports and synced configuration data are deserialized into runtime configuration containing exec* fields that the application later executes via a local pseudo-terminal (pty). Because the application uses Electron and spawns shell processes from user-controlled bookmark metadata without sufficient validation, attacker-supplied JSON effectively becomes shell command input. The CPE pkg:npm/electerm identifies the affected package, and the GitHub Security Advisory GHSA-jgg9-rw32-44pj scopes the impact to all versions through 3.8.8.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 9.4 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

4
Analysis Updated
May 28, 2026 - 18:29 vuln.today
v3 - CVSS changed
Analysis Updated
May 28, 2026 - 18:29 vuln.today
v2 - CVSS changed
CVSS changed
May 28, 2026 - 18:22 NVD
9.4 (CRITICAL)
CVE Published
May 14, 2026 - 20:15 nvd
CRITICAL

DescriptionGitHub Advisory

Impact

_Persistent local-pty code execution via imported bookmarks or compromised sync targets. Affects users who import bookmark JSON files or who have electerm sync configured (gist/WebDAV). The attacker can inject exec* fields or global config to cause remote code to run when a bookmark is opened or when sync is applied._

Patches

Not yet

Workarounds

  • Do not import unsafe data

References

  • Report / credit: https://github.com/Curly-Haired-Baboon
  • Electerm releases: https://github.com/electerm/electerm/releases

Executive ViewAI

Why It Matters

Electerm, an npm package used for terminal session management, contains a critical code execution flaw affecting all versions up to 3.8.8. Attackers can achieve persistent control of systems by delivering malicious bookmark files or compromising the application's sync targets (GitHub Gist or WebDAV storage). This creates a supply-chain risk for any team using bookmarks or cloud synchronization features.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable all sync functionality (Gist, WebDAV) in application settings; implement file-integrity monitoring on bookmark JSON files; restrict write access to sync storage targets (GitHub accounts, WebDAV servers); educate users to reject bookmark imports from external sources; consider running Electerm in containerized or VM-based isolation to limit blast radius of code execution.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy