Skip to main content

CVE-2026-34764

| EUVDEUVD-2026-19352 LOW
Use After Free (CWE-416)
2026-04-03 https://github.com/electron/electron GHSA-8x5q-pvf5-64mp
2.3
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Impact

This vulnerability presents a low-to-moderate real-world risk despite its low CVSS score of 2.3. The CVSS vector (AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L) reflects that exploitation requires local access, high privileges, and results only in availability impact (crash) with no confidentiality or integrity breach confirmed. However, several factors contextualize the risk: First, the vulnerability is genuinely memory corruption (use-after-free), which historically can escalate beyond denial-of-service in certain scenarios, even if the current analysis does not identify an exploitation path to code execution. Second, the condition is deterministic to trigger (offscreen rendering with shared textures is explicitly enabled), meaning any affected application using this feature is potentially vulnerable. Third, the immediate workaround is simple (prompt texture.release() calls), suggesting the issue is in developer practice rather than an unfixable design flaw. No public exploit code or active exploitation has been identified, and the local high-privilege requirement limits opportunistic attack surface. For organizations deploying Electron applications with offscreen shared-texture rendering, patching to the fixed versions is strongly recommended, but this is not a critical emergency compared to remote-code-execution or authentication-bypass vulnerabilities.

Exploit ScenarioDerived

An attacker with local system access and high privileges (e.g., a compromised system service or privileged user process) could craft or manipulate timing conditions within an Electron application that uses offscreen GPU shared-texture rendering to cause the paint event handler to delay or defer calling texture.release() until after the native texture backing has been freed. By triggering application events that force the release callback to be invoked-for instance, through rapid window resizing, dynamic texture recreation, or memory pressure events-the attacker causes the application process to dereference freed memory, resulting in a crash (denial of service). While no public proof-of-concept has been identified, the deterministic nature of the use-after-free (once the timing window is understood) makes this a reliable denial-of-service vector against vulnerable Electron applications.

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

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

Alert me

AnalysisAIv1 – Apr 03, 2026

Use-after-free in Electron's offscreen rendering with GPU shared textures allows local attackers with high privileges to cause memory corruption or application crashes by invoking the texture release callback after its backing native state has been freed. The vulnerability affects Electron versions before 42.0.0-alpha.5, 41.1.0, 40.8.5, and 39.8.5, and only impacts applications explicitly enabling shared-texture offscreen rendering via webPreferences.offscreen.useSharedTexture: true.

RemediationAI

Vendor-released patches are available in Electron 42.0.0-alpha.5, 41.1.0, 40.8.5, and 39.8.5. Applications should upgrade to the earliest patched version compatible with their release branch: use 42.0.0-alpha.5 or later for the v42 alpha series, 41.1.0 or later for the v41 stable branch, 40.8.5 or later for the v40 stable branch, or 39.8.5 or later for the v39 stable branch. As an interim workaround for applications that cannot immediately upgrade, ensure that texture.release() is called as soon as the texture has been consumed by the rendering pipeline, before the texture object is eligible for garbage collection. This prevents the callback from outliving the underlying native resource. For details, consult the official GitHub advisory at https://github.com/electron/electron/security/advisories/GHSA-8x5q-pvf5-64mp.

Affected VersionsENISA

electron 33.0.0-alpha.1, < 39.8.5
electron 41.0.0-alpha.1, < 41.1.0
electron 40.0.0-alpha.1, < 40.8.5
electron 42.0.0-alpha.1, < 42.0.0-alpha.5

Affected Packages

npm electron fix: 39.8.5, 40.8.5, 41.1.0, 42.0.0-alpha.5
euvd electron_33_0_0_alpha_1 fix: 39.8.5
euvd electron_40_0_0_alpha_1 fix: 40.8.5
euvd electron_41_0_0_alpha_1 fix: 41.1.0
euvd electron_42_0_0_alpha_1 fix: 42.0.0-alpha.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 5 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 offscreen rendering feature supports GPU-accelerated shared texture rendering to improve performance in applications that need to render content outside the main window. The vulnerability resides in memory lifecycle management between the Chromium renderer process and the native backing texture resource. When a paint event texture with shared GPU texture enabled is created, a release() callback is registered to signal when the texture is no longer needed. Under certain conditions-likely related to garbage collection timing, event loop scheduling, or asynchronous resource cleanup-the callback reference can outlive the native texture resource it was designed to manage. Invoking release() after the native state has been freed constitutes a classic use-after-free (CWE-416) condition, dereferencing memory that may have been reallocated or sanitized, leading to either a crash (denial of service) or potential memory corruption if the freed region is reused.

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

GitHub Advisory PRIMARY 2.3 LOW
AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

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

Lifecycle Timeline

2
Patch released
Apr 04, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 03, 2026 - 21:52 nvd
LOW 2.3

DescriptionGitHub Advisory

Impact

Apps that use offscreen rendering with GPU shared textures may be vulnerable to a use-after-free. Under certain conditions, the release() callback provided on a paint event texture can outlive its backing native state, and invoking it after that point dereferences freed memory in the main process, which may lead to a crash or memory corruption.

Apps are only affected if they use offscreen rendering with webPreferences.offscreen: { useSharedTexture: true }. Apps that do not enable shared-texture offscreen rendering are not affected.

Workarounds

Ensure texture.release() is called promptly after the texture has been consumed, before the texture object becomes unreachable.

Fixed Versions

  • 42.0.0-alpha.5
  • 41.1.0
  • 40.8.5
  • 39.8.5

For more information

If there are any questions or comments about this advisory, send an email to [security@electronjs.org](mailto:security@electronjs.org)

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD 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.0%
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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
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.

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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