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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

CVSS 8.4 · High EPSS 0.03% · P10
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
electermelecterm < 3.7.16 -

II. Public POCs for CVE-2026-43940

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-43940

登录查看更多情报信息。

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

CVE-2026-415019.8 CRITICALelecterm has Command Injection Vulnerability via runLinux function
CVE-2026-415009.8 CRITICALelecterm has Command Injection Vulnerability via runMac function
CVE-2026-439419.6 CRITICALUnvalidated shell.openExternal in electerm allows arbitrary protocol execution via termina
CVE-2026-439437.8 HIGHelecterm: RCE via malicious SSH server filename in openFileWithEditor
CVE-2026-439425.5 MEDIUMelecterm: Full process.env exposed to renderer via window.pre.env in electerm
CVE-2026-43944electerm: 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