# CVE-2026-49255: electerm OS command injection in file system operations

Source: https://junglewise.ai/threats/cve-2026-49255-electerm-os-command-injection-in-file-system-operations  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-19. Updated: 2026-07-02  
License: CC BY 4.0 with a link back

CVE-2026-49255 · Severity: high · CVSS 8.8 · Published 2026-08-19

electerm, a terminal and ssh/sftp client, is vulnerable to a command injection flaw. If a user connects to a malicious server, the server can send specially crafted filenames that trigger arbitrary command execution on the user's computer. This could lead to full system compromise, data theft, or malware installation.

Technologies: [electerm (npm)](https://junglewise.ai/threats/technologies/electerm). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-49255 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-49255 being exploited in the wild.

**How severe is CVE-2026-49255?** High severity, with a CVSS score of 8.8, published 19 August 2026.

**Which products and versions are affected?** electerm (npm) <= 3.11.0, SEMVER:introduced=0,fixed=3.11.11.

**Is there a fix for CVE-2026-49255?** Yes. electerm (npm): upgrade to 3.11.11 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-49255 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-49255?** Check whether you run electerm (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- electerm (npm): upgrade to 3.11.11 or later

  ```sh
  npm install electerm@3.11.11
  ```


## Technical details

A command injection vulnerability exists in electerm's file system operations (rmrf, mv, cp) within src/app/lib/fs.js. The application constructs shell commands by interpolating file paths directly into command strings using double or single quotes without proper escaping of shell metacharacters. An attacker controlling a malicious SSH/SFTP server can provide filenames containing shell breakout sequences (e.g., $(command)). When a victim performs file operations like transfers or renames on these files, the injected commands are executed with the privileges of the electerm user. This affects both POSIX (bash) and Windows (PowerShell) platforms. The issue is patched in version 3.11.11.

## Affected products

- electerm electerm <= 3.11.0

## Identifiers

- CVE-2026-49255
- GHSA-v5ff-xmfp-p245

## Timeline

- 2026-05-29: disclosed
- 2026-07-02: advisory: GHSA-v5ff-xmfp-p245 published
- 2026-07-02: patched

## References

- [https://api.github.com/users/hibrian827](https://api.github.com/users/hibrian827)
- [https://github.com/hibrian827](https://github.com/hibrian827)
- [https://api.github.com/users/hibrian827/gists%7B/gist_id%7D](https://api.github.com/users/hibrian827/gists%7B/gist_id%7D)
- [https://api.github.com/users/hibrian827/repos](https://api.github.com/users/hibrian827/repos)
- [https://avatars.githubusercontent.com/u/48850892?v=4](https://avatars.githubusercontent.com/u/48850892?v=4)
- [https://api.github.com/users/hibrian827/events%7B/privacy%7D](https://api.github.com/users/hibrian827/events%7B/privacy%7D)

## Related threats

- [electerm path traversal in Zmodem and Trzsz download handlers](https://junglewise.ai/threats/cve-2026-49253-electerm-path-traversal-in-zmodem-and-trzsz-download-handlers)
- [electerm weak encryption in synced profile data](https://junglewise.ai/threats/cve-2026-45787-electerm-weak-encryption-in-synced-profile-data)
- [electerm local code execution via single-instance socket](https://junglewise.ai/threats/cve-2026-45353-electerm-local-code-execution-via-single-instance-socket)
- [electerm code execution via imported bookmarks or sync targets](https://junglewise.ai/threats/cve-2026-45058-electerm-code-execution-via-imported-bookmarks-or-sync-targets)
- [electerm code execution via deep links or CLI options](https://junglewise.ai/threats/cve-2026-43944-electerm-arbitrary-code-execution-via-deep-links-or-cli-options)
