# CVE-2026-34764: Electron has a use-after-free in offscreen shared texture release() callback

- Severity: Low 2.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-04-03T21:52:33.000Z
- Modified: 2026-06-17T10:39:34.983Z
- Also known as: GHSA-8x5q-pvf5-64mp
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- electron electron: >= 33.0.0-alpha.1, < 39.8.5; >= 40.0.0-alpha.1, < 40.8.5; >= 41.0.0-alpha.1, < 41.1.0; >= 42.0.0-alpha.1, < 42.0.0-alpha.5
- electron (npm): from 33.0.0-alpha.1 before 39.8.5; from 40.0.0-alpha.1 before 40.8.5; from 41.0.0-alpha.1 before 41.1.0; from 42.0.0-alpha.1 before 42.0.0-alpha.5
- electronjs electron: from 33.0.0 before 39.8.5; from 40.0.0 before 40.8.5; from 41.0.0 before 41.1.0; 42.0.0

## Every score

- GitHub_M: CVSS:3.1 2.3 Low `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 2.3 Low `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## 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)

## Sources

- CVE List: [CVE-2026-34764](https://www.cve.org/CVERecord?id=CVE-2026-34764), CVE Terms of Use, modified 2026-04-07
- GitHub Advisory Database: [GHSA-8x5q-pvf5-64mp](https://github.com/advisories/GHSA-8x5q-pvf5-64mp), CC-BY-4.0, modified 2026-04-06
- NVD: [CVE-2026-34764](https://nvd.nist.gov/vuln/detail/CVE-2026-34764), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-34764 · Whole record: https://cve.day/CVE-2026-34764.json · Rebuilt by cve.day 2026-11-25T22:59:18.024Z
