CVE-2023-44402
JSON

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 packageVersionsReported 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.7CVE 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.13GitHub Advisory Database
electronjs electronup 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.0NVD

All scores

GitHub_M6.1medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L
NVD7.0high CVSS:3.1CVSS: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.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 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

Sources

SourceRecordLicence
CVE ListCVE-2023-44402 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-7m48-wc93-9g85 changed 2026-09-10CC-BY-4.0
NVDCVE-2023-44402 changed 2026-06-17Public domain