Security mailing lists by PureSourceCode

CVE-2023-39956

MEDIUM 6.6CVSS 3.1

Electron vulnerable to out-of-package code execution when launched with arbitrary cwd

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.

Published
6 Sep 2023
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-94
Also known as
GHSA-7x97-j373-85x5
Sources
NVDJSONOSV GHSA-7x97-j373-85x5JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.6 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD electronjs electron
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*
< 22.3.9 22.3.9
NVD electronjs electron
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*
>= 23.0.0, < 23.3.13 23.3.13
NVD electronjs electron
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*
>= 24.0.0, < 24.7.1 24.7.1
NVD electronjs electron
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*
>= 25.0.0, < 25.5.0 25.5.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:alpha1:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:alpha2:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:alpha3:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:alpha4:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:alpha5:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:alpha6:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:alpha7:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:alpha8:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:beta1:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:beta10:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:beta11:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:beta12:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:beta2:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:beta3:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:beta4:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:beta5:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:beta6:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:beta7:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:beta8:*:*:*:node.js:*:*
= 26.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:26.0.0:beta9:*:*:*:node.js:*:*
= 26.0.0
OSV npm electron < 22.3.19 22.3.19
OSV npm electron >= 23.0.0-alpha.1, < 23.3.13 23.3.13
OSV npm electron >= 24.0.0-alpha.1, < 24.7.1 24.7.1
OSV npm electron >= 25.0.0-alpha.1, < 25.5.0 25.5.0
OSV npm electron >= 26.0.0-alpha.1, < 26.0.0-beta.13 26.0.0-beta.13

References

History

  • 25 Nov 2026 20:36 UTC · NVD: first stored (published 6 Sep 2023)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 6 Sep 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.