CVE-2026-49255 electerm: Command Injection in File System Operations (rmrf, mv, cp)

High 8.8 Published Updated

A malicious SSH or SFTP server can trigger arbitrary command execution in electerm via crafted filenames during file operations, allowing attackers to compromise the user's system.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-49255?

CVE-2026-49255 is a high-severity command injection vulnerability in electerm, published on 19 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-78

Which versions are affected by CVE-2026-49255?

2 open source packages ship an affected version, including electerm.

PackageAffectedFixed in
electerm npmAll versions3.11.11
electerm npmAll versions3.11.11

How do I fix CVE-2026-49255?

Upgrade electerm to 3.11.11 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-49255 being exploited?

There is no known exploitation of CVE-2026-49255 in the wild and no public exploit code.

Sources

Also known as GHSA-v5ff-xmfp-p245.

Is CVE-2026-49255 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free