# CVE-2023-39956: Electron: Out-of-package code execution when launched with arbitrary cwd

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2023-09-06T19:51:33.000Z
- Modified: 2026-09-10T03:49:57.866Z
- Also known as: GHSA-7x97-j373-85x5
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- electron electron: < 22.3.19; >= 23.0.0, < 23.3.13; >= 24.0.0, < 24.7.1; >= 25.0.0, < 25.4.1; >= 26.0.0-beta.1, < 26.0.0-beta.13
- electron (npm): before 22.3.19; from 23.0.0-alpha.1 before 23.3.13; from 24.0.0-alpha.1 before 24.7.1; from 25.0.0-alpha.1 before 25.5.0; from 26.0.0-alpha.1 before 26.0.0-beta.13
- electronjs electron: before 22.3.9; from 23.0.0 before 23.3.13; from 24.0.0 before 24.7.1; from 25.0.0 before 25.5.0; 26.0.0

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L`
- NVD: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L`

## References

- <https://github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-39956> (advisory)
- <https://github.com/electron/electron> (package)

## Sources

- CVE List: [CVE-2023-39956](https://www.cve.org/CVERecord?id=CVE-2023-39956), CVE Terms of Use, modified 2024-09-26
- GitHub Advisory Database: [GHSA-7x97-j373-85x5](https://github.com/advisories/GHSA-7x97-j373-85x5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-39956](https://nvd.nist.gov/vuln/detail/CVE-2023-39956), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-39956 · Whole record: https://cve.day/CVE-2023-39956.json · Rebuilt by cve.day 2026-11-25T22:58:27.739Z
