{"id":"CVE-2026-43943","aliases":["CVE-2026-43943","GHSA-q4p8-8j9m-8hxj"],"related":[],"kind":"vulnerability","state":"published","title":"electerm: RCE via malicious SSH server filename in openFileWithEditor","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA 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.\n\nA 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.\n\n<img width=\"1792\" height=\"817\" alt=\"1\" src=\"https://github.com/user-attachments/assets/ddf78890-e95d-4fe7-981e-f86887677e8b\" />\n<img width=\"1648\" height=\"941\" alt=\"2\" src=\"https://github.com/user-attachments/assets/cca2295b-2053-4d99-a464-be51eac2f5be\" />\n\n### Patches\n\nFixed in version >= 3.7.9\n\n- https://github.com/electerm/electerm/commit/24ce7103e264cffe6eb5476c0506a2379e6f8333\n\n### Workarounds\n\nUntil a patch is available, it is strongly recommended to:  \n- Refrain from using the open with system editor  or \"Edit with custom editor\" feature when connected to untrusted or unfamiliar SSH servers.  \n- Consider using the built-in editor for viewing files, as this path may not be vulnerable to the same injection.  \n- If the feature must be used, ensure connections are exclusively established with trusted servers and perform rigorous filename validation before editing.\n\n### Resources\n\n- [electerm GitHub Repository](https://github.com/electerm/electerm)","format":"markdown","source":"ghsa"},{"lang":"es","text":"electerm es un cliente de terminal/ssh/sftp/telnet/puerto serie/RDP/VNC/Spice/ftp de código abierto. Antes de la versión 3.7.9, existe una vulnerabilidad de ejecución de código (RCE) en la función de electerm de SFTP abrir con editor del sistema o ’Editar con editor personalizado’. Cuando un usuario opta por editar un archivo usando abrir con editor del sistema o abrir con un editor personalizado, el nombre del archivo se pasa directamente a una línea de comandos sin sanitización. Un actor malicioso que controla el servidor SSH o el sistema operativo del usuario puede explotar esto creando un nombre de archivo que contenga metacaracteres de shell. Si una víctima intenta posteriormente editar este archivo, los comandos inyectados se ejecutan en su máquina con los privilegios del usuario. Esto podría permitir al atacante ejecutar código arbitrario, instalar malware o moverse lateralmente dentro de la red. Este problema ha sido parcheado en la versión 3.7.9.","source":"nvd"}],"published":"2026-05-08T02:55:51.285Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-78","CWE-88"],"affected":[{"ranges":[{"version":"< 3.7.9","status":"affected"}],"vendor":"electerm","product":"electerm","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.7.9"}],"ecosystem":"npm","package":"electerm","purl":"pkg:npm/electerm","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.7.9"}],"vendor":"electerm_project","product":"electerm","cpe":"cpe:2.3:a:electerm_project:electerm:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/electerm/electerm/security/advisories/GHSA-q4p8-8j9m-8hxj","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electerm/electerm/commit/24ce7103e264cffe6eb5476c0506a2379e6f8333","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electerm/electerm/releases/tag/v3.7.9","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43943","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/electerm/electerm","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-08T14:43:39.782Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43943","url":"https://www.cve.org/CVERecord?id=CVE-2026-43943","licence":"CVE Terms of Use","modified":"2026-05-08T14:44:16.203Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q4p8-8j9m-8hxj","url":"https://github.com/advisories/GHSA-q4p8-8j9m-8hxj","licence":"CC-BY-4.0","modified":"2026-05-08T19:11:29.526Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43943","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43943","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:20.954Z","epss":{"score":0.00165,"percentile":0.05964,"date":"2026-12-01T12:00:22.000Z"}}