CVE-2026-43943 — Vulnerability in electerm — CVE Details
Electerm Security Vulnerability: RCE via malicious SSH server filename in openFileWithEditor
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.
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 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).
| Package | Fixed In |
|---|---|
| electerm npm · Affected: All versions | 3.7.9 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-78OS Command InjectionMITRE
- CWE-88
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/electerm/electerm/security/advisories/GHSA-q4p8-8j9m-8hxjWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-43943ADVISORY
- https://github.com/electerm/electerm/commit/24ce7103e264cffe6eb5476c0506a2379e6f8333WEB
- https://github.com/electerm/electermPACKAGE
- https://github.com/electerm/electerm/releases/tag/v3.7.9WEB
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
Significant impact if exploited, or exploitable with modest effort.
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
Related CVEs
- CVE-2026-41501CRITICAL
electerm has Command Injection via runLinux funtion
- CVE-2026-43940CRITICAL
Electerm runWidget has a path traversal that leads to arbitrary code execution
- CVE-2026-45058CRITICAL
Electerm: Importing unsafe bookmark data could lead to unsafe operation when clicking local type bookmark
- CVE-2026-43944CRITICAL
Electerm users can run dangrous code through link or command line
- CVE-2026-41500CRITICAL
electerm: electerm_install_script_CommandInjection Vulnerability Report
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-43941HIGH
Electerm has an unvalidated shell.openExternal that allows arbitrary protocol execution via terminal link click
- CVE-2026-49255HIGH
electerm has Command Injection in File System Operations (rmrf, mv, cp)