electerm
Affected
- introduced
0, fixed3.11.11(semver)
Fixed versions
3.11.11
Fix
- Fixed version
3.11.11npm install [email protected]
Advisory
Also known as: CVE-2026-49253
electerm has Path Traversal in Zmodem and Trzsz Download Filename Handling
Impact
A path traversal vulnerability exists in the Zmodem and Trzsz file download handlers in electerm. When receiving files via Zmodem or Trzsz protocols, electerm uses the remote-supplied filename directly in path.join() with the user-selected download directory without sanitization.
A malicious SSH server or remote shell process can send a specially crafted filename such as ../escaped.txt to escape the user-selected download directory and write files to arbitrary locations on the user's filesystem, subject to process permissions.
Attack scenario:
../../.bashrc, ../escaped.txt)Affected components:
src/app/server/zmodem.js - prepareReceiveFile() at line 736src/app/server/trzsz.js - getUniqueFilePath() at line 559, openSaveFile() callback, and savedFilePaths mappingPatches
Workarounds
If upgrading is not immediately possible, users can mitigate this vulnerability by:
sz/rz) and Trzsz (trz/tsz) commands on untrusted serversHigh Basis: The source's own band: HIGH
0, fixed 3.11.11 (semver)3.11.11
3.11.11npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0