cve.bz

CVE-2023-39956 electronjs electron: Code Injection

6.6 mediumEPSS 0.5%Fix available

Medium (6.6) in electronjs electron. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in electron 22.3.19, 23.3.13, 24.7.1.

On this page
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.

Severity

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
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-09-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-39956 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-39956?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-39956?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-39956 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
electronjs:electronbefore 22.3.9
electronjs:electronfrom 23.0.0 before 23.3.13
electronjs:electronfrom 24.0.0 before 24.7.1
electronjs:electronfrom 25.0.0 before 25.5.0
electronjs:electron26.0.0:alpha1
electronjs:electron26.0.0:alpha2
electronjs:electron26.0.0:alpha3
electronjs:electron26.0.0:alpha4
electronjs:electron26.0.0:alpha5
electronjs:electron26.0.0:alpha6
electronjs:electron26.0.0:alpha7
electronjs:electron26.0.0:alpha8
electronjs:electron26.0.0:beta1
electronjs:electron26.0.0:beta10
electronjs:electron26.0.0:beta11
electronjs:electron26.0.0:beta12
electronjs:electron26.0.0:beta2
electronjs:electron26.0.0:beta3
electronjs:electron26.0.0:beta4
electronjs:electron26.0.0:beta5
electronjs:electron26.0.0:beta6
electronjs:electron26.0.0:beta7
electronjs:electron26.0.0:beta8
electronjs:electron26.0.0:beta9

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7x97-j373-85x5npmelectron<22.3.1922.3.19
GHSA-7x97-j373-85x5npmelectron>=23.0.0-alpha.1 <23.3.1323.3.13
GHSA-7x97-j373-85x5npmelectron>=24.0.0-alpha.1 <24.7.124.7.1
GHSA-7x97-j373-85x5npmelectron>=25.0.0-alpha.1 <25.5.025.5.0
GHSA-7x97-j373-85x5npmelectron>=26.0.0-alpha.1 <26.0.0-beta.1326.0.0-beta.13

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON