GHSA-3qxv-5xgr-q7w9: Low severity npm/electron vulnerability
Impact Frame data received from the GPU process for webContents.beginFrameSubscription was not fully validated by the main process. A compromised GPU process could cause the main process to read out-of-bounds memory while producing the captured frame images, disclosing memory or crashing the app.
Apps are only affected if they use webContents.beginFrameSubscription and an attacker has separately gained code execution in the GPU process. Apps that do not subscribe to captured frames are not affected.
Workarounds There are no app side workarounds, you must update to a patched version of Electron.
Fixed Versions 45.0.0-alpha.9 44.4.3 43.7.3 42.11.6
For more information If you have any questions or comments about this advisory, email us at security@electronjs.org
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/electronto a version that resolves this vulnerability.Fixed in 45.0.0-alpha.9 - Upgrade
Upgrade
npm/electronto a version that resolves this vulnerability.Fixed in 44.4.3 - Upgrade
Upgrade
npm/electronto a version that resolves this vulnerability.Fixed in 43.7.3 - Upgrade
Upgrade
npm/electronto a version that resolves this vulnerability.Fixed in 42.11.6 - Upgrade
Upgrade
Electronto a version that resolves this vulnerability.Fixed in 42.11.6 - Upgrade
Upgrade
Electronto a version that resolves this vulnerability.Fixed in 43.7.3 - Upgrade
Upgrade
Electronto a version that resolves this vulnerability.Fixed in 44.4.3 - Upgrade
Upgrade
Electronto a version that resolves this vulnerability.Fixed in 45.0.0-alpha.9
Event History
Frequently Asked Questions
Which applications are affected?
Only Electron applications that use webContents.beginFrameSubscription are affected. Applications that do not subscribe to captured frames are not affected.
What does an attacker need to exploit this issue?
The attacker must separately obtain code execution in the GPU process. That compromised process can then provide malformed frame data to the main process.
What could exploitation cause?
The main process may read memory out of bounds while generating captured frame images. This can disclose memory or crash the application.
What should we do if we cannot patch immediately?
There are no application-side workarounds. Update Electron to a patched version: 45.0.0-alpha.9, 44.4.3, 43.7.3, or 42.11.6.