CVE-2026-34764
MEDIUM 5.5CVSS 3.1Electron: Use-after-free in offscreen shared texture release() callback
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.
- Published
- 6 Apr 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-416
- Also known as
- GHSA-8x5q-pvf5-64mp
- Sources
- NVDJSONOSV GHSA-8x5q-pvf5-64mpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 2.3 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | LOW 2.3 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* |
>= 33.0.0, < 39.8.5 | 39.8.5 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* |
>= 40.0.0, < 40.8.5 | 40.8.5 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* |
>= 41.0.0, < 41.1.0 | 41.1.0 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:42.0.0:alpha1:*:*:*:node.js:*:* |
= 42.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:42.0.0:alpha2:*:*:*:node.js:*:* |
= 42.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:42.0.0:alpha3:*:*:*:node.js:*:* |
= 42.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:42.0.0:alpha4:*:*:*:node.js:*:* |
= 42.0.0 | |
| OSV | npm | electron | >= 33.0.0-alpha.1, < 39.8.5 | 39.8.5 |
| OSV | npm | electron | >= 40.0.0-alpha.1, < 40.8.5 | 40.8.5 |
| OSV | npm | electron | >= 41.0.0-alpha.1, < 41.1.0 | 41.1.0 |
| OSV | npm | electron | >= 42.0.0-alpha.1, < 42.0.0-alpha.5 | 42.0.0-alpha.5 |
References
- https://github.com/electron/electron/security/advisories/GHSA-8x5q-pvf5-64mp · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-34764 · ADVISORY
- https://github.com/electron/electron · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 6 Apr 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Apr 2026)