CVE-2024-46992 Electron ASAR Integrity bypass by just modifying the content
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm electron(npm) | >= 30.0.0-alpha.1, < 30.0.5; >= 31.0.0-alpha.1, < 31.0.0-beta.1 | 30.0.5, 31.0.0-beta.1 | Fixed |
| electron | = >= 30.0.0-alpha.1, < 30.0.5; = >= 31.0.0-alpha.1, < 31.0.0-beta.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm electron(npm) | >= 30.0.0-alpha.1, < 30.0.5 | 30.0.5 |
| npm electron(npm) | >= 31.0.0-alpha.1, < 31.0.0-beta.1 | 31.0.0-beta.1 |
| electron | = >= 30.0.0-alpha.1, < 30.0.5 | No fix listed |
| electron | = >= 31.0.0-alpha.1, < 31.0.0-beta.1 | No fix listed |
References
- https://github.com/electron/electron/security/advisories/GHSA-xw5q-g62x-2qjc vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://www.electronjs.org/docs/latest/tutorial/fuses
- github.com
- github.com product