Skip to main content

Electron EUVDEUVD-2026-53420

| CVE-2026-70598 LOW
Out-of-bounds Read (CWE-125)
2026-08-05 https://github.com/electron/electron GHSA-pfmc-3mgc-p6fp
3.9
CVSS 3.1 · Vendor: https://github.com/electron/electron
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Exploit separate GPU process vulnerability
  2. Delivery
    Gain code execution in Electron GPU subprocess
  3. Exploit
    Craft Mojo IPC frame with oversized content_rect and undersized shared memory
  4. Execution
    Trigger main process paint event in offscreen rendering mode
  5. Persist
    Main process reads out-of-bounds memory
  6. Impact
    Disclose browser process memory contents

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Two specific preconditions must simultaneously be true for exploitation: first, the targeted Electron application must be configured with webPreferences.offscreen: true, which is a non-default setting used only by applications requiring headless/off-screen rendering (e.g., screenshot tools, server-side rendering frameworks); second, the attacker must have independently achieved arbitrary code execution within Electron's GPU process, which itself requires exploiting a separate, unrelated vulnerability such as a Chromium GPU sandbox escape. Applications that do not set offscreen: true are entirely unaffected. The requirement for a pre-existing GPU process compromise is the dominant limiting factor - this CVE cannot be exploited in isolation and represents a second-stage capability in a multi-step attack chain rather than an entry point.

Impact

The CVSS 3.1 base score of 3.9 (Low) accurately reflects the constrained real-world risk. The vector AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L encodes three significant limiting factors: local attack vector (no remote exploitation path), high attack complexity (requires prior GPU process compromise as a prerequisite), and high privilege requirement (attacker must control the GPU subprocess). The Scope:Changed metric captures that a successful attack crosses from the GPU process sandbox into the browser process address space, which is the actual threat model concern. No EPSS score was provided in the input data, so exploitation probability cannot be quantified. The vulnerability is not in the CISA KEV catalog and no POC exists publicly. The tags in the intelligence source list 'RCE' and 'Buffer Overflow', which conflict with the CVE description and CWE-125 classification - this is a read-only out-of-bounds access with no write primitive, making RCE highly implausible from this flaw alone. Those tags should be treated as inaccurate metadata. In practical terms, this is a defense-in-depth gap in Electron's inter-process trust boundary rather than a standalone exploitable vulnerability; its primary risk is memory disclosure that could assist a chained exploit.

Exploit ScenarioDerived

An attacker who has separately achieved code execution within Electron's GPU process - for example, through a Chromium renderer-to-GPU sandbox escape - could craft malicious Mojo IPC messages supplying an inflated content_rect or pixel_size value paired with an undersized shared memory region. When the browser/main process handles the next paint event in offscreen rendering mode, it would read beyond the memory mapping boundary, potentially exposing heap or stack memory from the main process that could be used to bypass ASLR or aid further exploitation.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 05, 2026

Out-of-bounds memory read in Electron's offscreen rendering pipeline allows a compromised GPU process to cause the browser/main process to read beyond a shared memory mapping boundary when producing paint event images, disclosing process memory or crashing the application. Exploitation requires two independent preconditions: the host application must enable webPreferences.offscreen (non-default) and an attacker must have already achieved code execution in the GPU process via a separate vulnerability. No public exploit code has been identified at time of analysis, and this vulnerability is not listed in the CISA KEV catalog.

RemediationAI

Upgrade Electron to one of the patched releases: 39.8.10, 40.9.0, 41.2.1, or 42.0.0-beta.3, depending on the release series in use. The vendor explicitly states there are no application-side workarounds - the fix is entirely within the Electron framework itself and cannot be replicated by app developers through configuration or code changes. The upstream code fix is available at commit 2c24640e7b0b9c74fe9f44bce0fde138340ff4fb. Applications that do not require offscreen rendering can mitigate exposure entirely by ensuring webPreferences.offscreen is not set to true, which removes the vulnerable code path from the attack surface, though this does not address the underlying deficiency in Electron's IPC validation. Consult the security advisory at https://github.com/electron/electron/security/advisories/GHSA-pfmc-3mgc-p6fp for authoritative guidance.

Affected VersionsENISA

electron 41.0.0-alpha.1, < 41.2.1
electron < 39.8.10
electron 42.0.0-alpha.1, < 42.0.0-beta.3
electron 40.0.0-alpha.1, < 40.9.0

Affected Packages

npm electron fix: 39.8.10, 40.9.0, 41.2.1, 42.0.0-beta.3
euvd electron_40_0_0_alpha_1 fix: 40.9.0
euvd electron_41_0_0_alpha_1 fix: 41.2.1
euvd electron_42_0_0_alpha_1 fix: 42.0.0-beta.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Electron's multi-process architecture (pkg:npm/electron) separates rendering into a sandboxed GPU process that communicates with the browser/main process over Mojo IPC using shared memory segments. In offscreen rendering mode (OSR), the GPU process supplies frame geometry - specifically pixel_size and content_rect - alongside a shared memory region containing pixel data. The vulnerable code in osr_host_display_client.cc and osr_video_consumer.cc used GPU-supplied geometry to size Skia canvas objects without first verifying that the claimed dimensions were bounded by the actual shared memory mapping size. CWE-125 (Out-of-bounds Read) is the root cause: a hostile GPU process could advertise an oversized content_rect backed by an undersized mapping, causing the main process to compute a required_bytes value exceeding mapping.size() and subsequently read past the allocation boundary. The fix, committed at 2c24640e7b0b9c74fe9f44bce0fde138340ff4fb, adds explicit geometry-vs-mapping size checks in both OnAllocatedSharedMemory and OnFrameCaptured, and switches from CRASH_ON_FAILURE to RETURN_NULL_ON_FAILURE to prevent forced crashes on bad input.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/electron/electron) PRIMARY 3.9 LOW
AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L
vuln.today AI 3.9 LOW

Local attack vector and high privileges reflect GPU subprocess control requirement; high complexity for mandatory prior compromise; scope changed as read crosses into browser process; no integrity impact from a read-only flaw.

3.1 AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L
4.0 AV:L/AC:H/AT:P/PR:H/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/electron/electron).

CVSS VectorVendor: https://github.com/electron/electron

Attack Vector
Local
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
Low

DescriptionCVE.org

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 [security@electronjs.org](mailto:security@electronjs.org)

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
High
widely-used framework powering VS Code, Slack, Discord, and others
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy