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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
2DescriptionGitHub 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.541.1.040.8.539.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-19352
GHSA-8x5q-pvf5-64mp
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB