Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-38j7-23hf-9mhc: electerm has Path Traversal in Zmodem and Trzsz Download Filename Handling

0
High
Published: 07/02/2026 (07/02/2026, 19:20:20 UTC)
Source: GCVE Database
Product: electerm

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L

Affected software

npmghsa
electerm
Affected versions
<3.11.11

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/02/2026, 23:13:48 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses