Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.10, 40.9.0, 41.2.1,…
GitHub_M·CWE-125·Published 2026-08-05
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.10, 40.9.0, 41.2.1, and 42.0.0-beta.3, offscreen rendering frame data received from the GPU process 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 paint event images, disclosing memory or crashing the app. This issue is fixed in 39.8.10, 40.9.0, 41.2.1, and 42.0.0-beta.3.
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.10, 40.9.0, 41.2.1, and 42.0.0-beta.3, offscreen rendering frame data received from the GPU process 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 paint event images, disclosing memory or crashing the app. This issue is fixed in 39.8.10, 40.9.0, 41.2.1, and 42.0.0-beta.3.
### Impact In offscreen rendering mode, frame data received from the GPU process 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 `paint` event images, disclosing memory or crashing the app. Apps are only affected if they use offscreen rendering (`webPreferences.offscreen`) and an attacker has separately gained code execution in the GPU process. Apps that do not use offscreen rendering are not affected. ### Workarounds There are no app side workarounds, you must update to a patched version of Electron. ### Fixed Versions * `42.0.0-beta.3` * `41.2.1` * `40.9.0` * `39.8.10` ### For more information If you have any questions or comments about this advisory, email us at [[email protected]](mailto:[email protected])
| Version | Type | Source | Base | Exp | Impact | Vector |
|---|---|---|---|---|---|---|
| 3.1 | Primary | cve.org | 3.9 | — | — | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L |
| 3.1 | Secondary | GHSA | 3.9 | — | — | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L |
| 3.1 | Secondary | NVD | 3.9 | 0.8 | 2.7 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L |
| 3.1 | Secondary | ENISA EUVD | 3.9 | — | — | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L |