Vulnerability · Published Dec 1, 2023 · Assigned by GitHub_M
CVE-2023-44402ASAR Integrity bypass via filetype confusion in electron
Medium 6.1
In plain English
A medium-severity insufficient verification of data authenticity in electron from electron. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | electron | 22.3.24 | GHSA-7m48-wc93-9g85 |
| npm | electron | 24.8.3 | GHSA-7m48-wc93-9g85 |
| npm | electron | 25.8.1 | GHSA-7m48-wc93-9g85 |
| npm | electron | 26.2.1 | GHSA-7m48-wc93-9g85 |
| npm | electron | 27.0.0-alpha.7 | GHSA-7m48-wc93-9g85 |
| npm | electron | no fix listed | GHSA-7m48-wc93-9g85 |
Affected products (as reported)
Weakness: CWE-345 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L
References
- https://github.com/electron/electron/security/advisories/GHSA-7m48-wc93-9g85 x_refsource_CONFIRM
- https://github.com/electron/electron/pull/39788 x_refsource_MISC
- https://www.electronjs.org/docs/latest/tutorial/fuses x_refsource_MISC