Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft folder name with U+2019 quote
-
DeliveryDeliver via archive, WSL, or SMB share
-
ExploitVictim requests folder size in electerm
-
ExecutionName breaks out of PowerShell quoting
-
ImpactExecute arbitrary PowerShell as electerm user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires electerm version ≤5.8.0 running on Windows (fixed in v5.9.0). The attacker must get a file or folder whose name contains a PowerShell typographic single-quote delimiter (U+2018/U+2019/U+201A/U+201B, or double-quote U+201C-U+201F) onto a path the victim browses - delivered specifically via an extracted archive, a WSL distribution, or an SMB share per the advisory. Exploitation then requires the victim to actively perform a size/delete/copy/move operation on that named item in electerm, which builds the local PowerShell folder-size command. Limiting factors: Windows-only, local presence of the malicious name required (no network/remote-unauth path - remote Windows paths were already base64-protected since v5.7.5), and mandatory victim interaction to trigger the folder operation; code executes only with the privileges of the electerm user. |
| Impact | The input CVSS 4.0 score is 8.5 (High), but the vector tells the real story: AV:L and UI:P mean this is NOT remote, unauthenticated, or wormable - the attacker-controlled name must first reach the victim's local Windows filesystem (via an extracted archive, a WSL distribution, or an SMB share) and the victim must then actively request the folder's size (or delete/copy/move it) in electerm before any code runs. That delivery-plus-interaction requirement sharply reduces mass-exploitation likelihood and points toward targeted or opportunistic (poisoned-archive) use rather than broad automated attacks. Signals are only partially present: there is NO CISA KEV listing (so active exploitation is not confirmed) and NO EPSS score is provided in the input, so exploitation probability cannot be quantified. The vuln.today Decision label is 'this_week' (not act_now/emergency), which is consistent with a High-severity, patch-available, user-interaction-gated local flaw. A detailed working reproduction is published in the vendor GHSA advisory, raising practical risk above a purely theoretical issue. Notably this is an incomplete-fix bypass of prior advisories (GHSA-v5ff-xmfp-p245 / GHSA-ph25-cg2g-62cf), so defenders should ensure they are on the genuine fix (v5.9.0) rather than an earlier partial one. Net: a real, patch-this-week priority for Windows electerm users, but not an emergency given local vector, required user interaction, and no confirmed in-the-wild exploitation. |
| Exploit ScenarioDerived | An attacker crafts a folder whose name contains a Unicode right single quote (U+2019) followed by PowerShell commands (e.g. a’;Set-Content PWNED x;#) and delivers it inside a downloaded ZIP archive, on an SMB share, or on a WSL/remote Windows mount. When a victim running electerm ≤5.8.0 on Windows requests that folder's size (or deletes/copies/moves it), the typographic quote closes the PowerShell single-quoted literal early and the trailing text executes as the electerm user. A detailed, working reproduction with run output is published in the vendor GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
OS command injection in Electerm on Windows up to and including 5.8.0 lets a file or folder name carrying a typographic quote character (U+2018-U+201B single-quote, or U+201C-U+201F double-quote delimiters in PowerShell) break out of the single-quoted PowerShell literal assembled by getFolderSizeWin() and calcLocal(), so the remainder of the name runs as PowerShell with the privileges of the electerm user when the victim requests that folder's size or deletes, copies or moves it. Reaching that point requires the hostile name to land on the victim's local Windows filesystem first - an extracted archive, a WSL distribution or an SMB share - and requires the victim to actively trigger the folder operation; the assessed vector is AV:L with a user-interaction requirement, so this is not remote, unauthenticated or wormable. The vendor advisory contains a step-by-step reproduction recipe (folder name plus observed command shape), a public PoC reference that is not verified as released working exploit code; no CISA KEV entry or confirmed in-the-wild exploitation is recorded, and the fix ships in Electerm 5.9.0 with a this-week remediation priority.
RemediationAI
Vendor-released patch: upgrade to Electerm 5.9.0 or later on Windows, which base64-encodes local paths and decodes them inside the PowerShell script via the change in PR #4710 and commit 488b112d10dc21545f18284d4eb52db6dafb7f31, removing the escapePowerShellArg()/escapePowerShellPath() helpers entirely. The advisory presents this base64 transport as the complete fix and does not list a supported workaround; the earlier -EncodedCommand approach (GHSA-ph25-cg2g-62cf) was explicitly documented as insufficient because it only removed the cmd.exe quoting layer. Until upgrading, exposure can be reduced but not eliminated by keeping untrusted names away from paths the user browses in Electerm - do not extract archives whose entries contain U+2018-U+201F characters into browsed folders, and be cautious with WSL distributions and SMB shares mounted into local paths - and by avoiding size, delete, copy or move operations on untrusted folders so the vulnerable PowerShell command is never built. Advisory and fix references: https://github.com/electerm/electerm/security/advisories/GHSA-h4v2-5hq4-wc2g, https://www.vulncheck.com/advisories/electerm-before-5.9.0-os-command-injection-via-unicode-quotes-in-powershell and https://github.com/electerm/electerm/releases/tag/v5.9.0.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is CWE-78 command injection caused by shell-quoting that assumed ASCII: the escaping helper only doubled the ASCII apostrophe U+0027 before interpolating a local Windows path into a single-quoted PowerShell string, but the PowerShell language specification also accepts U+2018/U+2019/U+201A/U+201B as single-quote delimiters and U+201C-U+201F as double-quote delimiters, so a crafted name closes the literal early and the trailing text is parsed as code. Two code paths in v5.8.0 were affected: src/app/lib/fs.js escapePowerShellArg()/getFolderSizeWin() (local folder size) and src/client/components/sftp/file-info-modal.jsx escapePowerShellPath()/calcLocal() (folder size in the file-info dialog). This is an incomplete fix of the earlier GHSA-v5ff-xmfp-p245 / GHSA-ph25-cg2g-62cf and GHSA-ch82-q8wq-2gfv issues: remote Windows paths stopped being interpolated at all in v5.7.5, where buildPowerShellCommand() base64-encodes the path and decodes it inside the script, while an intermediate attempt to route the local script through -EncodedCommand only removed the cmd.exe quoting layer and left the PowerShell lexer exposed. The 5.9.0 fix (PR #4710, commit 488b112d10dc21545f18284d4eb52db6dafb7f31) applies the same base64 pattern locally - the path is decoded in-script via [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String(...)) and consumed with -LiteralPath, so no character of the folder name reaches the parser; unit tests now pin the base64 argument shape and feed the U+2018-U+201D characters as hostile samples.
Know when Electerm gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
AV:L because the hostile name must reside on a local/mounted path and UI:R because the victim must request the folder operation; PR:N since no electerm authentication is needed; arbitrary code as the electerm user gives C/I/A High, scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Articles & Coverage 1
Technical POC Analysis
CWE-78 OS command injection.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Electerm versions up to 5.8.0 on Windows contain a high-severity OS command injection flaw that could allow an attacker to execute arbitrary PowerShell commands with the privileges of the electerm user. This requires a maliciously named file or folder to be placed on the victim's local system and the user to trigger a folder operation, meaning exploitation depends on user interaction and local access. While not remotely exploitable or wormable, a successful attack could lead to unauthorized command execution and potential data compromise on affected endpoints.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Arbitrary local code execution in electerm (versions 3.0.6-3.8.14) allows remote attackers to execute malicious code on
Command injection in electerm's npm install script allows arbitrary command execution on macOS systems during 'npm insta
Arbitrary code execution in Electerm terminal client (≤3.8.15) allows attackers who control terminal output to execute c
Unintended internal method dispatch in electerm prior to v3.15.186 allows any authenticated WebSocket client to invoke a
Command injection in electerm prior to version 3.15.120 enables a malicious FTP or SFTP server operator to execute arbit
Path traversal in electerm's IPC widget loader allows local code execution with full process privileges when an attacker
Path traversal in electerm's RDP clipboard file transfer (prior to v3.15.120) lets a malicious RDP server write attacker
Path traversal in electerm's recursive file transfer component allows a malicious FTP or SFTP server to write attacker-c
Path traversal in electerm's SFTP client allows a malicious or man-in-the-middle SFTP server to write attacker-controlle
Command injection in electerm's SFTP file editor feature allows arbitrary code execution when users edit files with mali
Electerm through 5.8.1 ships a built-in MCP Server widget that binds an Express HTTP listener to 127.0.0.1:30837 and, by
Arbitrary OS command execution in electerm before 5.3.15 is achievable through a completely unvalidated Electron IPC bri
EUVD-2026-132807
GHSA-fh37-789x-x2mg
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB