Skip to main content

CVE-2026-43943 — Vulnerability in electerm — CVE Details

HIGH

Electerm Security Vulnerability: RCE via malicious SSH server filename in openFileWithEditor

Published May 8, 2026Updated May 8, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.24%). Schedule for your next planned update.

Does your project use an affected electerm version?

Paste your package-lock.json to check it for CVE-2026-43943 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

Impact

A code execution (RCE) vulnerability exists in electerm's SFTP open with system editor or "Edit with custom editor" feature. When a user opts to edit a file using open with system editor or open with a custom editor, the filename is passed directly into a command line without sanitization.

A malicious actor controlling the SSH server or user OS can exploit this by crafting a filename containing shell metacharacters. If a victim subsequently attempts to edit this file, the injected commands are executed on their machine with the user's privileges. This could allow the attacker to run arbitrary code, install malware, or move laterally within the network.

Patches

Fixed in version >= 3.7.9

Workarounds

Until a patch is available, it is strongly recommended to:

  • Refrain from using the open with system editor or "Edit with custom editor" feature when connected to untrusted or unfamiliar SSH servers.
  • Consider using the built-in editor for viewing files, as this path may not be vulnerable to the same injection.
  • If the feature must be used, ensure connections are exclusively established with trusted servers and perform rigorous filename validation before editing.

Resources

Advisory Timeline

  • First published May 8, 2026 (202 days ago).
  • Last revised May 8, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update electerm to 3.7.9 or later
npm install electerm@3.7.9

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: npm (1).

PackageFixed In
electerm npm · Affected: All versions3.7.9

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-43943?
Electerm Security Vulnerability: RCE via malicious SSH server filename in openFileWithEditor. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2026-43943?
CVE-2026-43943 affects electerm. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-43943 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.24%
EPSS percentile: 9

This is a below-median EPSS score — only 9% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-q4p8-8j9m-8hxj

Related CVEs

  • CVE-2026-41501
    CRITICAL

    electerm has Command Injection via runLinux funtion

  • CVE-2026-43940
    CRITICAL

    Electerm runWidget has a path traversal that leads to arbitrary code execution

  • CVE-2026-45058
    CRITICAL

    Electerm: Importing unsafe bookmark data could lead to unsafe operation when clicking local type bookmark

  • CVE-2026-43944
    CRITICAL

    Electerm users can run dangrous code through link or command line

  • CVE-2026-41500
    CRITICAL

    electerm: electerm_install_script_CommandInjection Vulnerability Report

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2026-43941
    HIGH

    Electerm has an unvalidated shell.openExternal that allows arbitrary protocol execution via terminal link click

  • CVE-2026-49255
    HIGH

    electerm has Command Injection in File System Operations (rmrf, mv, cp)

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json