GHSA-38j7-23hf-9mhc: electerm has Path Traversal in Zmodem and Trzsz Download Filename Handling
A path traversal vulnerability exists in electerm's handling of Zmodem and Trzsz file downloads. The application uses remote-supplied filenames directly without sanitization when saving files, allowing a malicious SSH server to craft filenames that escape the user-selected download directory. This can lead to files being written to arbitrary locations on the user's filesystem, potentially overwriting sensitive files. The vulnerability affects electerm versions prior to 3.11.11. A patch is available to address this issue. Users unable to upgrade immediately should avoid connecting to untrusted SSH servers and reject untrusted file transfers.
AI Analysis
Technical Summary
electerm versions before 3.11.11 contain a path traversal vulnerability in the Zmodem and Trzsz file download handlers. The vulnerability arises because electerm uses the remote-supplied filename directly in path.join() with the user-selected download directory without sanitization. This allows a malicious SSH server or remote shell to send filenames containing traversal sequences (e.g., '../escaped.txt'), causing files to be written outside the intended directory. The affected code components include prepareReceiveFile() in src/app/server/zmodem.js and getUniqueFilePath() and openSaveFile() in src/app/server/trzsz.js. A patch has been committed to fix this issue.
Potential Impact
An attacker controlling a malicious SSH server or remote shell can exploit this vulnerability by sending specially crafted filenames during Zmodem or Trzsz file transfers. This can cause files to be written outside the user-selected download directory, potentially overwriting sensitive files on the user's filesystem. The impact includes integrity loss of local files and possible disruption of user environments. The vulnerability requires user interaction (accepting a file transfer) and does not affect confidentiality or availability directly.
Mitigation Recommendations
A patch fixing this vulnerability is available in electerm version 3.11.11 and later; users should upgrade to this version or newer. If immediate upgrading is not possible, users should only connect to trusted SSH servers, reject or cancel any incoming Zmodem or Trzsz file transfers from untrusted sources, and avoid using Zmodem and Trzsz commands on untrusted servers.
GHSA-38j7-23hf-9mhc: electerm has Path Traversal in Zmodem and Trzsz Download Filename Handling
Description
A path traversal vulnerability exists in electerm's handling of Zmodem and Trzsz file downloads. The application uses remote-supplied filenames directly without sanitization when saving files, allowing a malicious SSH server to craft filenames that escape the user-selected download directory. This can lead to files being written to arbitrary locations on the user's filesystem, potentially overwriting sensitive files. The vulnerability affects electerm versions prior to 3.11.11. A patch is available to address this issue. Users unable to upgrade immediately should avoid connecting to untrusted SSH servers and reject untrusted file transfers.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
electerm versions before 3.11.11 contain a path traversal vulnerability in the Zmodem and Trzsz file download handlers. The vulnerability arises because electerm uses the remote-supplied filename directly in path.join() with the user-selected download directory without sanitization. This allows a malicious SSH server or remote shell to send filenames containing traversal sequences (e.g., '../escaped.txt'), causing files to be written outside the intended directory. The affected code components include prepareReceiveFile() in src/app/server/zmodem.js and getUniqueFilePath() and openSaveFile() in src/app/server/trzsz.js. A patch has been committed to fix this issue.
Potential Impact
An attacker controlling a malicious SSH server or remote shell can exploit this vulnerability by sending specially crafted filenames during Zmodem or Trzsz file transfers. This can cause files to be written outside the user-selected download directory, potentially overwriting sensitive files on the user's filesystem. The impact includes integrity loss of local files and possible disruption of user environments. The vulnerability requires user interaction (accepting a file transfer) and does not affect confidentiality or availability directly.
Mitigation Recommendations
A patch fixing this vulnerability is available in electerm version 3.11.11 and later; users should upgrade to this version or newer. If immediate upgrading is not possible, users should only connect to trusted SSH servers, reject or cancel any incoming Zmodem or Trzsz file transfers from untrusted sources, and avoid using Zmodem and Trzsz commands on untrusted servers.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-38j7-23hf-9mhc
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-49253"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a46ecba27e9c7971943cda0
Added to database: 07/02/2026, 22:56:58 UTC
Last enriched: 07/02/2026, 23:13:48 UTC
Last updated: 07/03/2026, 03:36:15 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.