cve-2023-29198
Vulnerability from cvelistv5
Published
2023-09-06 20:13
Modified
2024-09-26 15:12
Severity ?
EPSS score ?
Summary
Context isolation bypass via nested unserializable return value in Electron
References
Impacted products
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-02T14:00:15.868Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "name": "https://github.com/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7", "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7" }, { "name": "https://www.electronjs.org/docs/latest/api/context-bridge#parameter--error--return-type-support", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://www.electronjs.org/docs/latest/api/context-bridge#parameter--error--return-type-support" } ], "title": "CVE Program Container" }, { "metrics": [ { "other": { "content": { "id": "CVE-2023-29198", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "role": "CISA Coordinator", "timestamp": "2024-09-26T14:44:07.613258Z", "version": "2.0.3" }, "type": "ssvc" } } ], "providerMetadata": { "dateUpdated": "2024-09-26T15:12:58.704Z", "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP" }, "title": "CISA ADP Vulnrichment" } ], "cna": { "affected": [ { "product": "electron", "vendor": "electron", "versions": [ { "status": "affected", "version": "\u003c 22.3.6" }, { "status": "affected", "version": "\u003e= 23.0.0, \u003c 23.2.3" }, { "status": "affected", "version": "\u003e= 24.0.0, \u003c 24.0.1" }, { "status": "affected", "version": "\u003e= 25.0.0-alpha.1, \u003c 25.0.0-alpha.2" } ] } ], "descriptions": [ { "lang": "en", "value": "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": [ { "cvssV3_1": { "attackComplexity": "HIGH", "attackVector": "NETWORK", "availabilityImpact": "LOW", "baseScore": 6, "baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "privilegesRequired": "LOW", "scope": "CHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-754", "description": "CWE-754: Improper Check for Unusual or Exceptional Conditions", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2023-09-06T20:13:56.313Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7" }, { "name": "https://www.electronjs.org/docs/latest/api/context-bridge#parameter--error--return-type-support", "tags": [ "x_refsource_MISC" ], "url": "https://www.electronjs.org/docs/latest/api/context-bridge#parameter--error--return-type-support" } ], "source": { "advisory": "GHSA-p7v2-p9m8-qqg7", "discovery": "UNKNOWN" }, "title": "Context isolation bypass via nested unserializable return value in Electron" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2023-29198", "datePublished": "2023-09-06T20:13:56.313Z", "dateReserved": "2023-04-03T13:37:18.454Z", "dateUpdated": "2024-09-26T15:12:58.704Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2023-29198\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2023-09-06T21:15:11.560\",\"lastModified\":\"2024-11-21T07:56:41.947\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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`.\"},{\"lang\":\"es\",\"value\":\"Electron es un framework que le permite escribir aplicaciones de escritorio multiplataforma utilizando JavaScript, HTML y CSS. Las aplicaciones de Electron que usan `contextIsolation` y `contextBridge` se ven afectadas. Se trata de una omisi\u00f3n de aislamiento de contexto, lo que significa que el c\u00f3digo que se ejecuta en el contexto mundial principal en el renderizador puede acceder al contexto aislado de Electron y realizar acciones privilegiadas. Este problema solo se puede explotar si una API expuesta al mundo principal a trav\u00e9s de `contextBridge` puede devolver un objeto o matriz que contenga un objeto javascript que no se pueda serializar, por ejemplo, un contexto de representaci\u00f3n de lienzo. Esto normalmente dar\u00eda como resultado que se lanzara una excepci\u00f3n \\\"Error: el objeto no se pudo clonar\\\". El workaround del lado de la aplicaci\u00f3n es garantizar que tal caso no sea posible. Aseg\u00farese de que todos los valores devueltos por una funci\u00f3n expuesta a trav\u00e9s del puente de contexto sean compatibles. Este problema se solucion\u00f3 en las versiones `25.0.0-alpha.2`, `24.0.1`, `23.2.3` y `22.3.6`.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L\",\"baseScore\":6.0,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"HIGH\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"LOW\",\"integrityImpact\":\"LOW\",\"availabilityImpact\":\"LOW\"},\"exploitabilityScore\":1.8,\"impactScore\":3.7},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H\",\"baseScore\":8.5,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"HIGH\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":6.0}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-754\"}]},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-754\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*\",\"versionEndExcluding\":\"22.3.6\",\"matchCriteriaId\":\"1C14CCD1-146F-4A22-B093-C9FEC8047E91\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*\",\"versionStartIncluding\":\"23.0.0\",\"versionEndExcluding\":\"23.2.3\",\"matchCriteriaId\":\"B080AD66-1912-4AD2-BE21-B69935B4F04D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:-:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"2635DE47-9315-4D0D-BA52-215D97A09BF3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:alpha1:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"800543E5-0E06-4E9B-A18D-9857524244D0\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:alpha2:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"47E4540B-0EAE-41B8-878F-F22C3BDF0FE5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:alpha3:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"05448824-0FA1-41DF-938F-0FC5D82C9FE0\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:alpha4:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"FDB7E385-A58F-4B91-B7EE-75475D65038C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:alpha5:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"2ADACB20-163D-4BE0-AFD9-D93A5D58A910\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:alpha6:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"8EEBC95D-093C-49BE-A309-DE544BCD698C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:alpha7:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"501BF9A9-4EC1-485F-953B-E129252FC9B2\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:beta1:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"8F28A9E8-D1CD-476F-9BF7-F205B1FCDBC7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:beta2:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"19F9825C-3265-411E-96E0-1C470D4F6830\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:beta3:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"7CD55BDC-94ED-4ED8-905C-3AFBAB59AA63\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:beta4:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"E65B67F6-3AA6-4E7C-9290-C71A8CCB9A1A\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:beta5:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"CC14A98C-9410-42A2-A71B-DC73C3855901\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:beta6:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"01B7E19C-F35A-4EAD-9640-926EE76E5FB0\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:24.0.0:beta7:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"509E7716-E3DB-4ABF-820D-514DEE59F251\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:electronjs:electron:25.0.0:alpha1:*:*:*:node.js:*:*\",\"matchCriteriaId\":\"4F2529F8-84AF-4F04-BD1A-3C4A2AF49B6A\"}]}]}],\"references\":[{\"url\":\"https://github.com/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Mitigation\",\"Vendor Advisory\"]},{\"url\":\"https://www.electronjs.org/docs/latest/api/context-bridge#parameter--error--return-type-support\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Product\"]},{\"url\":\"https://github.com/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Mitigation\",\"Vendor Advisory\"]},{\"url\":\"https://www.electronjs.org/docs/latest/api/context-bridge#parameter--error--return-type-support\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\"]}]}}" } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.