6.1medium
ASAR Integrity bypass via filetype confusion in electron
- Severity
- 6.1medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-7m48-wc93-9g85
Description
Electron is an open source framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. This only impacts apps that have the `embeddedAsarIntegrityValidation` and `onlyLoadAppFromAsar` fuses enabled. Apps without these fuses enabled are not impacted. This issue is specific to macOS as these fuses are only currently supported on macOS. Specifically this issue can only be exploited if your app is launched from a filesystem the attacker has write access too. i.e. the ability to edit files inside the `.app` bundle on macOS which these fuses are supposed to protect against. There are no app side workarounds, you must update to a patched version of Electron.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| electron electron | < 22.3.24, >= 23.0.0-alpha.1, <= 23.3.13, >= 24.0.0-alpha.1, < 24.8.3, >= 25.0.0-alpha.1, < 25.8.1, >= 26.0.0-alpha.1, < 26.2.1, >= 27.0.0-alpha.1, < 27.0.0-alpha.7 | CVE List |
| electron (npm) | before 22.3.24, from 24.0.0-alpha.1 before 24.8.3, from 25.0.0-alpha.1 before 25.8.1, from 26.0.0-alpha.1 before 26.2.1, from 27.0.0-alpha.1 before 27.0.0-alpha.7, from 23.0.0-alpha.1 up to 23.3.13 | GitHub Advisory Database |
| electronjs electron | up to 22.3.24, from 23.0.0 up to 23.3.14, from 24.0.0 up to 24.8.3, from 25.0.0 up to 25.8.1, from 26.0.0 up to 26.2.1, 27.0.0 | NVD |
All scores
| GitHub_M | 6.1medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L |
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L |
| NVD | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
Electron is an open source framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. This only impacts apps that have the `embeddedAsarIntegrityValidation` and `onlyLoadAppFromAsar` fuses enabled. Apps without these fuses enabled are not impacted. This issue is specific to macOS as these fuses are only currently supported on macOS. Specifically this issue can only be exploited if your app is launched from a filesystem the attacker has write access too. i.e. the ability to edit files inside the `.app` bundle on macOS which these fuses are supposed to protect against. There are no app side workarounds, you must update to a patched version of Electron.
GitHub Advisory Database
Impact
This only impacts apps that have the embeddedAsarIntegrityValidation and onlyLoadAppFromAsar fuses enabled. Apps without these fuses enabled are not impacted. This issue is specific to macOS as these fuses are only currently supported on macOS.
Specifically this issue can only be exploited if your app is launched from a filesystem the attacker has write access too. i.e. the ability to edit files inside the resources folder in your app installation on Windows which these fuses are supposed to protect against.
Workarounds
There are no app side workarounds, you must update to a patched version of Electron.
Fixed Versions
27.0.0-alpha.726.2.125.8.124.8.322.3.24
For more information
If you have any questions or comments about this advisory, email us at security@electronjs.org
NVD (es)
Electron es un framework de código abierto para escribir aplicaciones de escritorio multiplataforma utilizando JavaScript, HTML y CSS. Esto solo afecta a las aplicaciones que tienen habilitados los fusibles "embeddedAsarIntegrityValidation" y "onlyLoadAppFromAsar". Las aplicaciones sin estos fusibles habilitados no se ven afectadas. Este problema es específico de macOS, ya que actualmente estos fusibles solo son compatibles con macOS. Específicamente, este problema solo puede explotarse si su aplicación se inicia desde un sistema de archivos en el que el atacante también tiene acceso de escritura, es decir, la capacidad de editar archivos dentro del paquete `.app` en macOS contra el cual se supone que protegen estos fusibles. No existen workarounds en la aplicación; debe actualizar a una versión parcheada de Electron.
References
| https://github.com/electron/electron/security/advisories/GHSA-7m48-wc93-9g85 | vendor-advisory, web | |
| https://github.com/electron/electron/pull/39788 | issue-tracking, web | |
| https://www.electronjs.org/docs/latest/tutorial/fuses | product, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-44402 | advisory | |
| https://github.com/electron/electron | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-44402 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7m48-wc93-9g85 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-44402 changed 2026-06-17 | Public domain |