CVE-2023-39956

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-39956
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-39956.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-39956
Aliases
Published
2023-09-06T20:09:33Z
Modified
2025-10-22T18:40:23.115241Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L CVSS Calculator
Summary
Electron: Out-of-package code execution when launched with arbitrary cwd
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-94"
    ]
}
References

Affected packages

Git / github.com/electron/electron

Affected ranges

Type
GIT
Repo
https://github.com/electron/electron
Events
Type
GIT
Repo
https://github.com/electron/electron
Events

Affected versions

v23.*

v23.0.0
v23.1.0
v23.1.1
v23.1.2
v23.1.3
v23.1.4
v23.2.0
v23.2.1
v23.2.2
v23.2.3
v23.2.4
v23.3.0
v23.3.1
v23.3.10
v23.3.11
v23.3.12
v23.3.2
v23.3.3
v23.3.4
v23.3.5
v23.3.6
v23.3.7
v23.3.8
v23.3.9

v24.*

v24.0.0
v24.1.0
v24.1.1
v24.1.2
v24.1.3
v24.2.0
v24.3.0
v24.3.1
v24.4.0
v24.4.1
v24.5.0
v24.5.1
v24.6.0
v24.6.1
v24.6.2
v24.6.3
v24.6.4
v24.6.5
v24.7.0