Arbitrary Code Execution Affecting electron package, versions >=23.0.0-alpha.1 <23.3.13>=24.0.0-alpha.1 <24.7.1>=25.0.0-alpha.1 <25.5.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ELECTRON-5885041
  • published7 Sept 2023
  • disclosed6 Sept 2023
  • creditMarshallOfSound

Introduced: 6 Sep 2023

CVE-2023-39956  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade electron to version 23.3.13, 24.7.1, 25.5.0 or higher.

Overview

electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS.

Affected versions of this package are vulnerable to Arbitrary Code Execution allowing out-of-package code execution when apps are launched as command-line executables.

Note:

Specifically, this issue can only be exploited if the following conditions are met:

  1. Your app is launched with an attacker-controlled working directory.

  2. The attacker has the ability to write files to that working directory.

CVSS Scores

version 3.1