{"id":"CVE-2023-39956","aliases":["GHSA-7x97-j373-85x5"],"url":"https://o3.security/vulnerability/CVE-2023-39956","summary":"Electron: Out-of-package code execution when launched with arbitrary cwd","details":"### Impact\nApps that are launched as command line executables are impacted.  E.g. if your app exposes itself in the path as `myapp --help`\n\nSpecifically this issue can only be exploited if the following conditions are met:\n* Your app is launched with an attacker-controlled working directory\n* The attacker has the ability to write files to that working directory\n\nThis 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](https://github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5#:~:text=Physically%20Local%20Attacks) but given the ability for this issue to bypass certain protections like ASAR Integrity it is being treated with higher importance.  Please bear this in mind when reporting similar issues in the future.\n\n### Workarounds\nThere are no app side workarounds, you must update to a patched version of Electron.\n\n### Fixed Versions\n* `26.0.0-beta.13`\n* `25.5.0`\n* `24.7.1`\n* `23.3.13`\n* `22.3.19`\n\n### For more information\nIf you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)","published":"2023-09-06T20:09:33.185Z","modified":"2026-08-12T03:51:48.398059476Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L"},"epss":{"score":0.00563,"percentile":0.44286,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"electron","fixedVersion":"22.3.19"},{"ecosystem":"npm","name":"electron","fixedVersion":"23.3.13"},{"ecosystem":"npm","name":"electron","fixedVersion":"24.7.1"},{"ecosystem":"npm","name":"electron","fixedVersion":"25.5.0"},{"ecosystem":"npm","name":"electron","fixedVersion":"26.0.0-beta.13"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/39xxx/CVE-2023-39956.json"},{"type":"ADVISORY","url":"https://github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39956"},{"type":"PACKAGE","url":"https://github.com/electron/electron"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:48.398059476Z"}}