CVE-2026-70598

Electron: Off-screen rendering trusts GPU-supplied geometry over shared-memory size

Published Aug 5, 2026 CVSS 3.1 · 3.9 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Electron’s off-screen rendering routine receives geometry data from the GPU process, but the main process does not fully validate the shared-memory layout. When the geometry specification exceeds the actual buffer size, the main process reads beyond the intended memory region while assembling paint events, potentially revealing sensitive information or causing the application to crash. The weakness is a classic out-of-bounds read (CWE‑125).

Affected Systems

All Electron releases prior to 39.8.10, 40.9.0, 41.2.1, and 42.0.0-beta.3 are affected. These versions are used in desktop applications built with the Electron framework and run on Windows, macOS, and Linux.

Risk and Exploitability

The CVSS score of 3.9 indicates low overall severity, and no EPSS data or CISA KEV listing is available. Based on the description, it is inferred that an attacker would need to control or subvert the GPU process – a scenario typically involving local privilege escalation or a compromised graphics driver – to provide malicious geometry data. The vulnerability does not appear exploitable from a remote network context and is not currently tracked in the KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Electron to 39.8.10, 40.9.0, 41.2.1, 42.0.0‑beta.3 or later to apply the vendor patch that fully validates GPU geometry
  • If a timely upgrade is not possible, disable or limit off‑screen rendering features in the application to prevent the use of the vulnerable routine
  • Restrict the privileges granted to the GPU process so that it cannot supply arbitrary geometry data
  • Keep the host system’s graphics drivers up to date to reduce the risk of a compromised GPU process

Generated by OpenCVE AI on August 5, 2026 at 18:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-pfmc-3mgc-p6fp Electron: Off-screen rendering trusts GPU-supplied geometry over shared-memory size
History
Type Values Removed Values Added
First Time appeared Electronjs
Electronjs electron
CPEs cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha1:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha2:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha3:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha4:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha5:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha6:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:beta1:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:beta2:*:*:*:node.js:*:*
Vendors & Products Electronjs
Electronjs electron
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Electron
Electron electron
Vendors & Products Electron
Electron electron
Type Values Removed Values Added
Description 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.
Title Electron: Off-screen rendering trusts GPU-supplied geometry over shared-memory size
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 3.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 5, 2026, 6:15 PM
Reserved
Aug 4, 2026, 7:50 PM
Status
Analyzed
Published
Aug 5, 2026, 4:17 PM
Modified
Oct 8, 2026, 1:54 PM