Loading...
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

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. <img width="1792" height="817" alt="1" src="https://github.com/user-attachments/assets/ddf78890-e95d-4fe7-981e-f86887677e8b" /> <img width="1648" height="941" alt="2" src="https://github.com/user-attachments/assets/cca2295b-2053-4d99-a464-be51eac2f5be" /> ### Patches Fixed in version >= 3.7.9 - https://github.com/electerm/electerm/commit/24ce7103e264cffe6eb5476c0506a2379e6f8333 ### 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 - [electerm GitHub Repository](https://github.com/electerm/electerm)

Advisory Timeline

  • First published May 8, 2026 (157 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, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: npm (1).

PackageEcosystemAffectedFixed In
electerm
npm
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. 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

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-q4p8-8j9m-8hxj

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies