Skip to main content
← All vulnerabilities
CVE-2024-46992GHSA-XW5Q-G62X-2QJC

Electron ASAR Integrity bypass by just modifying the content

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 30.0.5, 31.0.0-beta.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

Electron is an open source framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. From versions 30.0.0-alpha.1 to before 30.0.5 and 31.0.0-alpha.1 to before 31.0.0-beta.1, Electron is vulnerable to an ASAR Integrity bypass. 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 Windows, apps using these fuses on macOS are not impacted. Specifically this issue can only be exploited if the 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. This issue has been patched in versions 30.0.5 and 31.0.0-beta.1. There are no workarounds for this issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • electron electron

    From 30.0.0-alpha.1 · fixed in 30.0.5; From 31.0.0-alpha.1 · fixed in 31.0.0-beta.1

  • electronnpm

    From 30.0.0-alpha.1 · fixed in 30.0.5

  • electronnpm

    From 31.0.0-alpha.1 · fixed in 31.0.0-beta.1

References 2

GitHub · electron/electron

electronjs.org