CVE-2026-43943: Electerm command injection in openFileWithEditor via malicious SSH filename

CVE-2026-43943 · Severity: high · CVSS 7.8 · Published 2026-05-08

Electerm is a terminal emulator that allows users to edit remote files via SFTP using their system editor. A vulnerability in the "open with editor" feature fails to sanitize filenames, allowing an attacker controlling an SSH server to inject shell commands. An unsuspecting user who attempts to edit a crafted filename would execute arbitrary code with their privileges, potentially leading to malware installation or lateral movement within a network.

Technologies: Electerm Project Electerm, electerm (npm). Vendors: Electerm Project, npm.

Quick answers

Is CVE-2026-43943 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-43943 being exploited in the wild.
How severe is CVE-2026-43943?
High severity, with a CVSS score of 7.8, published 8 May 2026.
Which products and versions are affected?
electerm (npm) SEMVER:introduced=0,fixed=3.7.9.
Is there a fix for CVE-2026-43943?
Yes. electerm (npm): upgrade to 3.7.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-43943 attacked?
It is attacked with local access.
Am I affected by CVE-2026-43943?
Check whether you run Electerm Project Electerm or electerm (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • electerm (npm): upgrade to 3.7.9 or later
    npm install electerm@3.7.9

Technical details

The vulnerability is a classic OS command injection (CWE-78) and argument injection (CWE-88) flaw in the SFTP file editor feature. When a user selects "open with system editor" or "edit with custom editor," the filename is directly passed to the shell without sanitization or proper escaping. An attacker who controls the SSH server can craft a filename containing shell metacharacters (e.g., backticks, pipes, semicolons) that are interpreted as commands when the filename is passed to exec. The attack requires local file system access or control of the SSH server, and user interaction (the victim must attempt to edit the file). Fixed in version 3.7.9 via commit 24ce7103e264cffe6eb5476c0506a2379e6f8333.

Affected products

  • Electerm Electerm <=3.7.8

Identifiers

  • CVE-2026-43943
  • GHSA-q4p8-8j9m-8hxj

Timeline

  • 2026-05-08: disclosed
  • 2026-05-08: patched: Fixed in version 3.7.9

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.