{"id":"CVE-2026-49253","published":"2026-08-19T14:31:55Z","modified":"2026-08-21T19:31:45Z","title":"electerm: Path Traversal in Zmodem and Trzsz Download Filename Handling","vendor":"electerm","product":"electerm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00439,"percentile":0.3906,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/electerm/electerm/security/advisories/GHSA-38j7-23hf-9mhc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/electerm/electerm/commit/fde153d677a170c5816368f6586647f3af4ef284","tags":["x_refsource_MISC"]},{"url":"https://github.com/electerm/electerm/releases/tag/v3.11.11","tags":["x_refsource_MISC"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":7.81},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"electerm","affectedVersions":[{"vendor":"electerm","product":"electerm","versions":["< 3.11.11"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-21T19:31:22.919563Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"electerm","vulnerableRanges":["<3.11.11"],"patched":["3.11.11"],"from":["GHSA-38j7-23hf-9mhc"],"provenance":"source"}],"summary":{"text":"The electerm terminal, SSH/SFTP and remote-access client mishandles remote-supplied filenames during Zmodem and Trzsz file receives: it joins them to the user-selected save directory without sanitizing path traversal components, in its Zmodem and Trzsz server-side code. An attacker controlling a malicious SSH server or remote shell can send a crafted filename such as ../../.bashrc, which requires the victim to accept the transfer and select a download directory, and can then overwrite files outside that directory that the desktop user can access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:30Z"},"euvd":{"id":"EUVD-2026-62421","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-43944","published":"2026-05-08","fixed":"3.8.8","kev":false},{"cve":"CVE-2026-45353","published":"2026-05-28","fixed":"3.9.0","kev":false},{"cve":"CVE-2026-45787","published":"2026-05-28","fixed":"3.9.5","kev":false,"link":{"from":"CVE-2026-45787","to":"CVE-2026-49253","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:electerm","fromFixed":"3.9.5","toFixed":"3.11.11","daysApart":83}]}},{"cve":"CVE-2026-49253","published":"2026-08-19","fixed":"3.11.11","kev":false},{"cve":"CVE-2026-49255","published":"2026-08-19","fixed":"3.11.11","kev":false}],"package":"npm:electerm"}}