{"id":"CVE-2026-43940","sourceIdentifier":"security-advisories@github.com","published":"2026-05-08T04:16:23.023","lastModified":"2026-11-11T23:10:00.263","vulnStatus":"Analyzed","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"electerm es un cliente de terminal/ssh/sftp/telnet/puerto serie/RDP/VNC/Spice/ftp de código abierto. Antes de la versión 3.7.16, la función runWidget en src/app/widgets/load-widget.js construye una ruta de archivo concatenando directamente identificadores de widget proporcionados por el usuario sin ninguna sanitización. Debido a que runWidget está expuesto al proceso de renderizado a través de un gestor IPC asíncrono sin validación de entrada, un atacante que logra la ejecución de JavaScript dentro del renderizador (por ejemplo, a través de un plugin malicioso o una falla de cross-site scripting en el webview incorporado) puede abusar de un salto de ruta (.. / ) para cargar y ejecutar un archivo JavaScript arbitrario en cualquier lugar del sistema de archivos de la víctima. Esto le da al atacante ejecución de código local con los privilegios completos del proceso electerm, lo que lleva a un compromiso completo del sistema. Este problema ha sido parcheado en la versión 3.7.16."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"electerm","product":"electerm","versions":[{"version":"< 3.7.16","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.4,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.5,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-05-08T12:52:37.558703Z","id":"CVE-2026-43940","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-22"},{"lang":"en","value":"CWE-829"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:electerm_project:electerm:*:*:*:*:*:*:*:*","versionEndExcluding":"3.7.16","matchCriteriaId":"6E0CF034-D768-4369-9CD6-B59CD34B03CD"}]}]}],"references":[{"url":"https://github.com/electerm/electerm/releases/tag/v3.7.16","source":"security-advisories@github.com","tags":["Release Notes"]},{"url":"https://github.com/electerm/electerm/security/advisories/GHSA-f77v-9vpc-6pjm","source":"security-advisories@github.com","tags":["Mitigation","Vendor Advisory"]}]}