Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-43940— electerm: Path traversal in electerm runWidget leads to arbitrary code execution

Quick assessment

Affected
electerm electerm
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Electerm是中国zxdong262个人开发者的一款基于 electron 开发的 SSH/SFTP 客户端。 electerm 3.7.16之前版本存在路径遍历漏洞,该漏洞源于runWidget函数直接拼接用户提供的widget标识符而未进行清理,可能导致路径遍历攻击,攻击者通过恶意插件或跨站脚本漏洞加载并执行任意JavaScript文件,导致本地代码执行和系统完全破解。

CVSS 8.4 · High EPSS 0.22% · P12

Affected Version Matrix 1

VendorProduct Version RangeStatus
electerm electerm < 3.7.16 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-43940

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
electerm: Path traversal in electerm runWidget leads to arbitrary code execution
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
Electerm 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Electerm是中国zxdong262个人开发者的一款基于 electron 开发的 SSH/SFTP 客户端。 electerm 3.7.16之前版本存在路径遍历漏洞,该漏洞源于runWidget函数直接拼接用户提供的widget标识符而未进行清理,可能导致路径遍历攻击,攻击者通过恶意插件或跨站脚本漏洞加载并执行任意JavaScript文件,导致本地代码执行和系统完全破解。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
electerm electerm < 3.7.16 -

II. Public POCs for CVE-2026-43940

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-43940

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-43940 (1)

Vendor Pages for CVE-2026-43940 (1)

Same Patch Batch · electerm · 2026-05-08 · 7 CVEs total

CVE-2026-41501 9.8 CRITICAL electerm has Command Injection Vulnerability via runLinux function
CVE-2026-41500 9.8 CRITICAL electerm has Command Injection Vulnerability via runMac function
CVE-2026-43941 9.6 CRITICAL Unvalidated shell.openExternal in electerm allows arbitrary protocol execution via termina
CVE-2026-43943 7.8 HIGH electerm: RCE via malicious SSH server filename in openFileWithEditor
CVE-2026-43942 5.5 MEDIUM electerm: Full process.env exposed to renderer via window.pre.env in electerm
CVE-2026-43944 electerm: dangerous code can be run through links or command line

IV. Related Vulnerabilities

V. Comments for CVE-2026-43940

No comments yet


Leave a comment