CVE-2023-29198
Last modified
CVE-2023-29198 is a high-severity vulnerability rated 8.5/10 on the CVSS scale. Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. Electron apps using `contextIsolation` and `contextBridge` are affected. EPSS estimates a 0.49% chance of exploitation in the next 30 days.
Description
Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. Electron apps using `contextIsolation` and `contextBridge` are affected. This is a context isolation bypass, meaning that code running in the main world context in the renderer can reach into the isolated Electron context and perform privileged actions. This issue is only exploitable if an API exposed to the main world via `contextBridge` can return an object or array that contains a javascript object which cannot be serialized, for instance, a canvas rendering context. This would normally result in an exception being thrown `Error: object could not be cloned`. The app side workaround is to ensure that such a case is not possible. Ensure all values returned from a function exposed over the context bridge are supported. This issue has been fixed in versions `25.0.0-alpha.2`, `24.0.1`, `23.2.3`, and `22.3.6`.
Metrics
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Electronjs | Electron | < 22.3.6 | — |
| Electronjs | Electron | >= 23.0.0, < 23.2.3 | — |
| Electronjs | Electron | 24.0.0 | — |
| Electronjs | Electron | 25.0.0 | Alpha1 |
References
- https://github.com/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7Mitigation, Vendor Advisory
- https://github.com/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7Mitigation, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-29198?
How severe is CVE-2023-29198?
How do I fix CVE-2023-29198?
Are you affected by CVE-2023-29198?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
