GitHub Advisoryadvisory · npm

GHSA-7m48-wc93-9g85 ASAR Integrity bypass via filetype confusion in electron

MEDIUM Published 2023-12-01 Modified 2024-09-18 Official page ↗
Aliases
CVE-2023-44402
Ecosystem
npm
Packages
electron
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L
Weaknesses
CWE-345
Reviewed
2023-12-01

Affected packages

• npm electron: < 22.3.24 → fixed in 22.3.24 • npm electron: >= 24.0.0-alpha.1, < 24.8.3 → fixed in 24.8.3 • npm electron: >= 25.0.0-alpha.1, < 25.8.1 → fixed in 25.8.1 • npm electron: >= 26.0.0-alpha.1, < 26.2.1 → fixed in 26.2.1 • npm electron: >= 27.0.0-alpha.1, < 27.0.0-alpha.7 → fixed in 27.0.0-alpha.7 • npm electron: >= 23.0.0-alpha.1, <= 23.3.13 (no fix yet)

Description

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.7` • `26.2.1` • `25.8.1` • `24.8.3` • `22.3.24` For more information If you have any questions or comments about this advisory, email us at [email protected]

Related

Alias · CVE (1)

  • CVE-2023-44402 Electron is an open source framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. vulnerability

Weakness · CWE (1)

  • CWE-345 Insufficient Verification of Data Authenticity weakness

References