Skip to content

CVE-2024-46992 Electron ASAR Integrity bypass by just modifying the content

HighCVSS 7.8 EPSS 0.12%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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