Electerm before 5.9.0 OS Command Injection via Unicode Quotes in PowerShell
- State
- Published
- Severity
- 8.5 High
- Published
- Nov 22, 2026
- Updated
- Nov 23, 2026
- Reserved
- Nov 22, 2026
Description
Electerm before 5.9.0 on Windows contains an OS command injection vulnerability that allows attackers to execute PowerShell code via crafted file or folder names containing Unicode quote characters. Attackers can deliver names containing U+2019 through archives, WSL distributions, or SMB shares, which break out of getFolderSizeWin() and calcLocal() quoting when victims request folder sizes, executing code as the electerm user.
| Product | Versions |
|---|---|
| electerm electerm | before 5.9.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.5 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- GitHub Security Advisory (GHSA-h4v2-5hq4-wc2g)Vendor Advisory
- https://github.com/electerm/electerm/pull/4710Issue TrackerPatch
- https://github.com/electerm/electerm/commit/488b112d10dc21545f18284d4eb52db6dafb7f31Patch
- electerm v5.9.0 Release NotesRelease Notes
- https://github.com/electerm/electerm/blob/v5.8.0/src/app/lib/fs.js#L106-L115Technical Details
- https://github.com/electerm/electerm/blob/v5.8.0/src/client/components/sftp/file-info-modal.jsx#L183-L192Technical Details
- VulnCheck Advisory: Electerm before 5.9.0 OS Command Injection via Unicode Quotes in PowerShellThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.