CVE-2026-43940: electerm - Path Traversal
- Cve: CVE-2026-43940
- Name: electerm - Path Traversal
- Description: electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to version 3.7.16, the runWidget function in src/app/widgets/load-widget.js constructs a file path by directly concatenating user‑supplied widget identifiers without any sanitisation. Because runWidget is exposed to the renderer process via an asynchronous IPC handler with no input validation, an attacker who achieves JavaScript execution inside the renderer (for example, through a malicious plugin or a cross‑site scripting flaw in the built‑in webview) can abuse a path traversal (../) to load and execute an arbitrary JavaScript file anywhere on the victim’s filesystem. This gives the attacker local code execution with the full privileges of the electerm process, leading to complete system compromise. This issue has been patched in version 3.7.16.
- Impact: Attackers can execute arbitrary code locally with electerm process privileges, leading to full system compromise.
- Remediation: Update to version 3.7.16 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: remote_code_execution
- Requirements: Attacker needs JavaScript execution in renderer process
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.4
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00167
- Epss percentile: 0.05935
- Assignee: [email protected]
- Published at: 2026-05-08T04:16:23Z
- Age in days: 200
- Modified at: 2026-11-11T23:10:00Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-43940
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/electerm/electerm/security/advisories/GHSA-f77v-9vpc-6pjm | nvd | Mitigation, Vendor Advisory |
| https://github.com/electerm/electerm/releases/tag/v3.7.16 | nvd | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| electerm_project:electerm | < 3.7.16 | no | nvd | /v1/products/electerm_project/electerm |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| electerm/electerm | package, releases, security_advisory | yes | /v1/repositories/electerm/electerm |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts