// For flags

CVE-2023-39956

Electron: Out-of-package code execution when launched with arbitrary cwd

Severity Score

6.6
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Track
*SSVC
Descriptions

Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. Electron apps that are launched as command line executables are impacted. Specifically this issue can only be exploited if the following conditions are met: 1. The app is launched with an attacker-controlled working directory and 2. The attacker has the ability to write files to that working directory. This makes the risk quite low, in fact normally issues of this kind are considered outside of our threat model as similar to Chromium we exclude Physically Local Attacks but given the ability for this issue to bypass certain protections like ASAR Integrity it is being treated with higher importance. This issue has been fixed in versions:`26.0.0-beta.13`, `25.4.1`, `24.7.1`, `23.3.13`, and `22.3.19`. There are no app side workarounds, users must update to a patched version of Electron.

"Electron es un framework que le permite escribir aplicaciones de escritorio multiplataforma utilizando JavaScript, HTML y CSS. Las aplicaciones de Electron que se inician como ejecutables de línea de comandos se ven afectadas. Específicamente, este problema solo puede explotarse si se cumplen las siguientes condiciones:
1. La aplicación se inicia con un directorio de trabajo controlado por el atacante y
2. El atacante tiene la capacidad de escribir archivos en ese directorio de trabajo.
Esto hace que el riesgo sea bastante bajo, de hecho, normalmente los problemas de este tipo se consideran fuera de nuestro modelo de amenaza, ya que son similares a Chromium y excluimos los ataques físicamente locales, pero dada la capacidad de este problema para eludir ciertas protecciones como la Integridad ASAR, se está tratando con niveles más altos de importancia. Este problema se solucionó en las versiones: `26.0.0-beta.13`, `25.4.1`, `24.7.1`, `23.3.13` y `22.3.19`. No existen workarounds en la aplicación, los usuarios deben actualizar a una versión parcheada de Electron."

*Credits: N/A
CVSS Scores
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
Low
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
Low
* Common Vulnerability Scoring System
SSVC
  • Decision:Track
Exploitation
None
Automatable
No
Tech. Impact
Partial
* Organization's Worst-case Scenario
Timeline
  • 2023-08-07 CVE Reserved
  • 2023-09-06 CVE Published
  • 2023-09-07 EPSS Updated
  • 2024-09-26 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-94: Improper Control of Generation of Code ('Code Injection')
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
< 22.3.9
Search vendor "Electronjs" for product "Electron" and version " < 22.3.9"
node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
>= 23.0.0 < 23.3.13
Search vendor "Electronjs" for product "Electron" and version " >= 23.0.0 < 23.3.13"
node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
>= 24.0.0 < 24.7.1
Search vendor "Electronjs" for product "Electron" and version " >= 24.0.0 < 24.7.1"
node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
>= 25.0.0 < 25.5.0
Search vendor "Electronjs" for product "Electron" and version " >= 25.0.0 < 25.5.0"
node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
alpha1, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
alpha2, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
alpha3, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
alpha4, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
alpha5, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
alpha6, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
alpha7, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
alpha8, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
beta1, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
beta10, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
beta11, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
beta12, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
beta2, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
beta3, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
beta4, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
beta5, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
beta6, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
beta7, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
beta8, node.js
Affected
Electronjs
Search vendor "Electronjs"
Electron
Search vendor "Electronjs" for product "Electron"
26.0.0
Search vendor "Electronjs" for product "Electron" and version "26.0.0"
beta9, node.js
Affected