electerm: Command Injection in File System Operations (rmrf, mv, cp)
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| electerm | electerm | before 3.11.11 | 3.11.11 | Patch available | CNA |
| — | electerm (npm) | before 3.11.11 | 3.11.11 | Patch available | GHSA-v5ff-xmfp-p245 |
- electerm Vendorelecterm Affected before 3.11.11 Fixed in 3.11.11 Patch available CNA
- electerm (npm) Vendor— Affected before 3.11.11 Fixed in 3.11.11 Patch available GHSA-v5ff-xmfp-p245
Remediation
- Fix · CNA electerm (electerm) Fixed in 3.11.11
- Fix · GHSA-v5ff-xmfp-p245 electerm (npm) Fixed in 3.11.11 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-49255
- 2026-10-03 Alias added: GHSA-v5ff-xmfp-p245
References
More electerm vulnerabilities
- TI-2020-14501 An issue was discovered in Electerm 1.3.22, allows attackers to execute arbitrary code… CVSS 3.1CRITICAL 9.8
- TI-2026-36449 electerm: Path Traversal in Zmodem and Trzsz Download Filename Handling CVSS 3.1HIGH 7.1
- TI-2026-30086 electerm has Command Injection Vulnerability via runMac function CVSS 3.1CRITICAL 9.8
- TI-2026-30087 electerm has Command Injection Vulnerability via runLinux function CVSS 3.1CRITICAL 9.8
- TI-2026-31998 Unvalidated shell.openExternal in electerm allows arbitrary protocol execution via terminal link click CVSS 3.1CRITICAL 9.6
- TI-2026-32907 electerm: Import unsafe bookmark data could lead to unsafe operation when click local type bookmark CVSS 4.0CRITICAL 9.4
Sources
- CVE-2026-49255 · CVE Program
- CVE-2026-49255 · NVD
- FIRST EPSS
- GHSA-v5ff-xmfp-p245 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences