CVE-2026-43943 electerm: RCE via malicious SSH server filename in openFileWithEditor
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to version 3.7.9, 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. This issue has been patched in version 3.7.9.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| electerm project electerm | < 3.7.9 | 3.7.9 | Fixed |
| npm electerm(npm) | < 3.7.9; <= 3.7.8 | 3.7.9 | Fixed |
| electerm | = < 3.7.9 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| electerm | = < 3.7.9 | No fix listed |
| npm electerm(npm) | <= 3.7.8 | No fix listed |
| electerm project electerm | < 3.7.9 | 3.7.9 |
| npm electerm(npm) | < 3.7.9 | 3.7.9 |
References
- https://github.com/electerm/electerm/security/advisories/GHSA-q4p8-8j9m-8hxj patch vendor-advisory
- https://github.com/electerm/electerm/commit/24ce7103e264cffe6eb5476c0506a2379e6f8333 patch
- https://github.com/electerm/electerm/releases/tag/v3.7.9 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product