CVE-2023-39956

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

MEDIUM
6.6
CVSS Score
Published: September 6, 2023 at 08:09 PM UTC
Updated: June 17, 2026 at 06:13 AM UTC
2 products affected across 2 vendorsElectronElectron

Using electron by electron?

Get instant alerts when new vulnerabilities affect electron - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.6
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Affected range stops below 22.3.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 23.3.13, so it looks safe — our inference, not a vendor statement
Affected range stops below 24.7.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 25.5.0, so it looks safe — our inference, not a vendor statement
v < 22.3.19v < 23.3.13v < 24.7.1v < 25.4.1v < 26.0.0-beta.13
Affected range stops below 22.3.19, so it looks safe — our inference, not a vendor statement
Affected range stops below 23.3.13, so it looks safe — our inference, not a vendor statement
Affected range stops below 24.7.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 25.4.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 26.0.0-beta.13, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
HIGH
Availability
LOW
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-94

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card