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

    Threat Intelligence

    EPSS
    0.04% (10th 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 ID SNYK-JS-ELECTRON-5885041
  • published 7 Sep 2023
  • disclosed 6 Sep 2023
  • credit MarshallOfSound

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
Expand this section

Snyk

Recommended
6.1 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    High
  • Availability (A)
    Low
Expand this section

NVD

6.6 medium