Technical impact
Electerm before version 5.9.0 on Windows allows attackers to inject and execute arbitrary PowerShell code when a victim requests the size of a folder or archive. The flaw arises from the way Unicode quote characters such as U+2019 break out of the quoting logic in the getFolderSizeWin() and calcLocal() functions, enabling a crafted file or folder name to be interpreted as a command. This results in code execution as the electerm user, giving attackers the same privileges that the application runs with.
Affected Systems
All installations of Electerm version 5.8.x and earlier on Windows are affected. The vulnerability is present in all builds of Electerm prior to 5.9.0 and can be triggered by any Windows machine running the compromised application.
Risk and Exploitability
The vulnerability has a CVSS score of 8.5, reflecting a high severity with remote access to the vulnerable functions. The EPSS score is not available, so the current exploitation probability cannot be quantified, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires that an attacker deliver a filename containing a Unicode quote character through an archive, WSL distribution, or SMB share, and that the victim request the folder size, a typical action when browsing directories. Once triggered, the attacker can run arbitrary PowerShell commands with the electerm user's privileges.