CVE-2024-46992 Electron ASAR Integrity bypass by just modifying the content
Attackers can bypass ASAR integrity checks on Windows to execute arbitrary code if they have write access to the application directory.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-46992?
CVE-2024-46992 is a high-severity vulnerability in electron, published on 1 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-354
Which versions are affected by CVE-2024-46992?
4 open source packages ship an affected version, including electron.
| Package | Affected | Fixed in |
|---|---|---|
electron npm | From 30.0.0-alpha.1 | 30.0.5 |
electron npm | From 30.0.0-alpha.1 | 30.0.5 |
electron npm | From 31.0.0-alpha.1 | 31.0.0-beta.1 |
electron npm | From 31.0.0-alpha.1 | 31.0.0-beta.1 |
How do I fix CVE-2024-46992?
Upgrade electron to a fixed version for your release line: 30.0.5 or 31.0.0-beta.1.
Is CVE-2024-46992 being exploited?
There is no known exploitation of CVE-2024-46992 in the wild and no public exploit code.
Sources
Also known as GHSA-xw5q-g62x-2qjc.