Description
electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to 3.11.11, electerm constructs operating system commands in src/app/lib/fs.js by interpolating untrusted file paths into the rmrf(), mv(), and cp() functions. A malicious SSH or SFTP server can provide a filename containing quote characters and shell metacharacters, and a victim can cause that filename to reach the affected operation during remote-to-local transfer, conflict renaming, copying, moving, or removal. The generated `rm -rf`, mv, `cp -r`, PowerShell Remove-Item, Move-Item, or Copy-Item command can then interpret the filename as shell syntax. This allows arbitrary command execution with the electerm desktop user's privileges on POSIX and Windows systems, enabling data exfiltration, file modification, malware installation, or denial of service. This issue is fixed in version 3.11.11.
Published: 2026-08-19
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Electerm constructs operating system commands by interpolating untrusted file paths into the rmrf, mv, and cp functions. A malicious SSH or SFTP server can supply a file name containing quote characters and shell metacharacters. When the victim performs a remote‑to‑local transfer, rename, copy, or delete operation, the generated command is interpreted by the shell. This permits arbitrary command execution with the desktop user’s privileges on both POSIX and Windows platforms. The vulnerability also potentially triggers PowerShell Remove‑Item, Move‑Item, or Copy‑Item commands, further expanding the attack surface. The impact includes data exfiltration, file modification, malware installation, or denial of service.

Affected Systems

The vulnerability affects Electerm versions prior to 3.11.11, both Windows and POSIX desktop clients. All users running these versions are at risk whenever they connect to an SSH or SFTP server that might provide a crafted file name. Electerm 3.11.11 and later contain a fix that sanitizes file paths before command construction and are not affected.

Risk and Exploitability

The CVSS score of 8.8 indicates a high severity with no authentication required beyond normal usage of the client. The EPSS score is < 1%, indicating a low probability of exploitation, and the vulnerability is not listed in CISA KEV. The attack vector relies on the attacker controlling the filename on a remote server, so any user who connects to a malicious SSH/SFTP host via Electerm is at risk. Exploitation requires only that a file transfer operation reaches the vulnerable function, with no privilege escalation beyond the user running the client.

Generated by OpenCVE AI on August 20, 2026 at 15:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Electerm to version 3.11.11 or later to apply the path‑sanitization fix.
  • If an upgrade cannot be performed immediately, disable remote‑to‑local transfer, rename, copy, or delete operations in Electerm or restrict use to trusted SSH/SFTP hosts only.
  • Configure network or user controls to block connections to untrusted SSH/SFTP servers, mitigating the possibility that a malicious server supplies a crafted filename.

Generated by OpenCVE AI on August 20, 2026 at 15:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-v5ff-xmfp-p245 electerm has Command Injection in File System Operations (rmrf, mv, cp)
History

Tue, 25 Aug 2026 02:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 19 Aug 2026 18:15:00 +0000

Type Values Removed Values Added
First Time appeared Electerm
Electerm electerm
Vendors & Products Electerm
Electerm electerm

Wed, 19 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
Description electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to 3.11.11, electerm constructs operating system commands in src/app/lib/fs.js by interpolating untrusted file paths into the rmrf(), mv(), and cp() functions. A malicious SSH or SFTP server can provide a filename containing quote characters and shell metacharacters, and a victim can cause that filename to reach the affected operation during remote-to-local transfer, conflict renaming, copying, moving, or removal. The generated `rm -rf`, mv, `cp -r`, PowerShell Remove-Item, Move-Item, or Copy-Item command can then interpret the filename as shell syntax. This allows arbitrary command execution with the electerm desktop user's privileges on POSIX and Windows systems, enabling data exfiltration, file modification, malware installation, or denial of service. This issue is fixed in version 3.11.11.
Title electerm: Command Injection in File System Operations (rmrf, mv, cp)
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

Electerm Electerm
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-25T02:04:00.692Z

Reserved: 2026-05-28T14:33:01.179Z

Link: CVE-2026-49255

cve-icon Vulnrichment

Updated: 2026-08-25T02:03:56.732Z

cve-icon NVD

Status : Received

Published: 2026-08-19T15:17:06.893

Modified: 2026-08-25T03:16:55.340

Link: CVE-2026-49255

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T15:45:03Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')