Electron has a use-after-free in offscreen shared texture release() callback
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-416 and the CVSS impact.
Summary
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. From 33.0.0-alpha.1 to before 39.8.5, 40.8.5, 41.1.0, and 42.0.0-alpha.5, 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. To mitigate this issue, ensure texture.release() is called promptly after the texture has been consumed, before the texture object becomes unreachable. This vulnerability is fixed in 39.8.5, 40.8.5, 41.1.0, and 42.0.0-alpha.5.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| electron | electron | 33.0.0-alpha.1 to before 39.8.5; 40.0.0-alpha.1 to before 40.8.5; 41.0.0-alpha.1 to before 41.1.0; 42.0.0-alpha.1 to before 42.0.0-alpha.5 | 39.8.5, 40.8.5, 41.1.0, 42.0.0-alpha.5 | Patch available | CNA |
| — | electron (npm) | 33.0.0-alpha.1 to before 39.8.5 | 39.8.5 | Patch available | GHSA-8x5q-pvf5-64mp |
| — | electron (npm) | 40.0.0-alpha.1 to before 40.8.5 | 40.8.5 | Patch available | GHSA-8x5q-pvf5-64mp |
| — | electron (npm) | 41.0.0-alpha.1 to before 41.1.0 | 41.1.0 | Patch available | GHSA-8x5q-pvf5-64mp |
| — | electron (npm) | 42.0.0-alpha.1 to before 42.0.0-alpha.5 | 42.0.0-alpha.5 | Patch available | GHSA-8x5q-pvf5-64mp |
- electron Vendorelectron Affected 33.0.0-alpha.1 to before 39.8.5; 40.0.0-alpha.1 to before 40.8.5; 41.0.0-alpha.1 to before 41.1.0; 42.0.0-alpha.1 to before 42.0.0-alpha.5 Fixed in 39.8.5, 40.8.5, 41.1.0, 42.0.0-alpha.5 Patch available CNA
- electron (npm) Vendor— Affected 33.0.0-alpha.1 to before 39.8.5 Fixed in 39.8.5 Patch available GHSA-8x5q-pvf5-64mp
- electron (npm) Vendor— Affected 40.0.0-alpha.1 to before 40.8.5 Fixed in 40.8.5 Patch available GHSA-8x5q-pvf5-64mp
- electron (npm) Vendor— Affected 41.0.0-alpha.1 to before 41.1.0 Fixed in 41.1.0 Patch available GHSA-8x5q-pvf5-64mp
- electron (npm) Vendor— Affected 42.0.0-alpha.1 to before 42.0.0-alpha.5 Fixed in 42.0.0-alpha.5 Patch available GHSA-8x5q-pvf5-64mp
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* | 33.0.0 to before 39.8.5; 40.0.0 to before 40.8.5; 41.0.0 to before 41.1.0 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:42.0.0:alpha1:*:*:*:node.js:*:* | 42.0.0 alpha1 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:42.0.0:alpha2:*:*:*:node.js:*:* | 42.0.0 alpha2 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:42.0.0:alpha3:*:*:*:node.js:*:* | 42.0.0 alpha3 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:42.0.0:alpha4:*:*:*:node.js:*:* | 42.0.0 alpha4 | Vulnerable | Electronjs |
- cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* Versions 33.0.0 to before 39.8.5; 40.0.0 to before 40.8.5; 41.0.0 to before 41.1.0 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:42.0.0:alpha1:*:*:*:node.js:*:* Versions 42.0.0 alpha1 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:42.0.0:alpha2:*:*:*:node.js:*:* Versions 42.0.0 alpha2 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:42.0.0:alpha3:*:*:*:node.js:*:* Versions 42.0.0 alpha3 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:42.0.0:alpha4:*:*:*:node.js:*:* Versions 42.0.0 alpha4 Vulnerable ·Electronjs
Remediation
- Fix · CNA electron (electron) Fixed in 39.8.5, 40.8.5, 41.1.0, 42.0.0-alpha.5
- Fix · GHSA-8x5q-pvf5-64mp electron (npm) Fixed in 39.8.5 Advisory →
- Fix · GHSA-8x5q-pvf5-64mp electron (npm) Fixed in 40.8.5 Advisory →
- Fix · GHSA-8x5q-pvf5-64mp electron (npm) Fixed in 41.1.0 Advisory →
- Fix · GHSA-8x5q-pvf5-64mp electron (npm) Fixed in 42.0.0-alpha.5 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Build of Podman Desktop | Affected | No fix yet: Fix deferred |
| Red Hat Build of Podman Desktop - Tech Preview | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-34764
- 2026-10-03 Alias added: GHSA-8x5q-pvf5-64mp
References
More electron vulnerabilities
- TI-2026-39496 Information disclosure in electron-builder CVSS 4.0HIGH 8.2
- TI-2024-26621 Code Signing Bypass on Windows in electron-updater < 6.3.0-alpha.6 CVSS 3.1HIGH 7.5
- TI-2023-09452 Content-Secrity-Policy disabling eval not applied consistently in renderers with sandbox disabled in Electron CVSS 3.1CRITICAL 9.8
- TI-2026-39157 Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow CVSS 4.0CRITICAL 9.3
- TI-2017-09308 GitHub Electron before 1.6.8 allows remote command execution because of a nodeIntegration… CVSS 3.0HIGH 8.1
- TI-2022-11788 Exposure of Resource to Wrong Sphere in Electron CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-34764 · CVE Program
- CVE-2026-34764 · NVD
- FIRST EPSS
- GHSA-8x5q-pvf5-64mp · GitHub Advisory Database · CC BY 4.0
- CVE-2026-34764 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences