{"id":"CVE-2026-49255","published":"2026-08-19T14:30:12Z","modified":"2026-08-25T02:04:00Z","title":"electerm: Command Injection in File System Operations (rmrf, mv, cp)","vendor":"electerm","product":"electerm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0079,"percentile":0.57172,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/electerm/electerm/security/advisories/GHSA-v5ff-xmfp-p245","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/electerm/electerm/commit/aa778818843b9c083bd711cd04644d102fcb5a42","tags":["x_refsource_MISC"]},{"url":"https://github.com/electerm/electerm/releases/tag/v3.11.11","tags":["x_refsource_MISC"]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":11.43},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"electerm","affectedVersions":[{"vendor":"electerm","product":"electerm","versions":["< 3.11.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-25T02:03:51.502098Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"electerm","vulnerableRanges":["<3.11.11"],"patched":["3.11.11"],"from":["GHSA-v5ff-xmfp-p245"],"provenance":"source"}],"summary":{"text":"The electerm desktop client (before version 3.11.11) builds OS commands in its file system helper functions rmrf(), mv(), and cp() by inserting untrusted file paths directly into the command string, so a filename supplied by a remote SSH or SFTP server can be interpreted as shell syntax. An attacker running a malicious server can execute arbitrary commands with the victim's user privileges on POSIX or Windows systems, provided the victim is induced to perform a remote-to-local transfer, rename, copy, move, or removal involving that filename.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:58Z"},"euvd":{"id":"EUVD-2026-62420","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-electerm-cve-2026-43943","parents":[{"from":"CVE-2026-43943","to":"CVE-2026-49255","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/app/lib/fs.js"],"commits":["https://github.com/electerm/electerm/commit/24ce7103e264cffe6eb5476c0506a2379e6f8333","https://github.com/electerm/electerm/commit/aa778818843b9c083bd711cd04644d102fcb5a42"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-45353","published":"2026-05-28","fixed":"3.9.0","kev":false},{"cve":"CVE-2026-45787","published":"2026-05-28","fixed":"3.9.5","kev":false,"link":{"from":"CVE-2026-45787","to":"CVE-2026-49255","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:electerm","fromFixed":"3.9.5","toFixed":"3.11.11","daysApart":83}]}},{"cve":"CVE-2026-49253","published":"2026-08-19","fixed":"3.11.11","kev":false},{"cve":"CVE-2026-49255","published":"2026-08-19","fixed":"3.11.11","kev":false}],"package":"npm:electerm"}}