Electerm
electerm: Path traversal in editWithSystemEditor temp file path via unsanitized SFTP filename
electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to 3.15.120, electerm allows a malicious SFTP server to write attacker-controlled content outside the temporary directory because the server-controlled filename name used by editWithSystemEditor in src/client/components/sftp/file-item.jsx is interpolated into path.resolve without sanitization. This issue is fixed in version 3.15.120.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.1high · scored by CNA · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
electerm electerm
- < 3.15.120
Fixed in 3.15.120
Mitigation
Upgrade electerm to 3.15.120 or later.
References
- Vendor advisory github.com/electerm/electerm/security/advisori…
- Patch github.com/electerm/electerm/commit/32ea293657…
- Release notes github.com/electerm/electerm/releases/tag/v3.1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.